/* =============================================
   CHADLINGTON CCBAG — Shared Stylesheet v2
   ============================================= */

:root {
    --bg:         #e6e4de;
    --bg-card:    #dedad3;
    --green:      #29a366;
    --green-dk:   #1f8050;
    --green-lt:   #e8f5ee;
    --text:       #1a1a1a;
    --text-mid:   #555555;
    --text-light: #888888;
    --border:     #ccc9c2;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dk); text-decoration: underline; }

img { display: block; max-width: 100%; height: auto; }

p { margin: 0 0 1em; }

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    overflow: hidden;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    overflow: visible;
}

.nav-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    max-width: 420px;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}
.nav-title span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-title img {
    height: 36px;
    width: 36px;
    flex-shrink: 0;
    display: block;
}

.nav-title:hover { color: var(--text); text-decoration: none; }

.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: stretch;
}

.nav-links > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-links > li > a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s;
    white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    border-bottom-color: var(--green);
    color: var(--text);
    text-decoration: none;
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-top: 2px solid var(--green);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
    display: block;
    padding: 9px 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.1s;
}

.dropdown li a:hover {
    background: var(--green-lt);
    color: var(--green-dk);
    text-decoration: none;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    height: 320px;
    background-color: #3a5a3a;
    background-size: cover;
    background-position: center 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
    position: relative;
    color: white;
    padding: 0 30px;
    max-width: 800px;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    margin: 0 0 12px;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 17px;
    margin: 0;
    opacity: 0.92;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ─────────────────────────────────────────
   CONTAINER
───────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

section { margin: 64px 0; }

/* ─────────────────────────────────────────
   HOME — PHOTO GRID
───────────────────────────────────────── */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.photo-grid .cell {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-card);
}

.photo-grid .cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-grid .cell:hover img { transform: scale(1.03); }

/* ─────────────────────────────────────────
   HOME — NAV BOXES
───────────────────────────────────────── */
.nav-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.nav-box {
    padding: 24px 16px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: rgba(255,255,255,0.35);
    transition: background 0.2s;
}

.nav-box:hover { background: rgba(255,255,255,0.6); }

.nav-box h2 {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
}

.nav-box h2 a {
    color: var(--green);
    text-decoration: underline;
}

.nav-box p {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: var(--text-mid);
    margin: 0;
    line-height: 1.5;
}

/* ─────────────────────────────────────────
   HOME — OTHER TOPICS
───────────────────────────────────────── */
.other-topics {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    margin-top: 12px;
}

.other-topics h3 {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px;
}

.other-topics h3 a { color: var(--green); text-decoration: underline; }

.other-topics ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.other-topics ul li a {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* ─────────────────────────────────────────
   TWO-COL (About, Contact)
───────────────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.two-col h1 {
    font-size: 40px;
    font-weight: 400;
    margin: 0 0 28px;
    line-height: 1.15;
}

.two-col ul {
    padding-left: 20px;
    margin: 0 0 1em;
}

.two-col ul li { margin-bottom: 6px; }

.photo-stack { display: flex; flex-direction: column; gap: 12px; }

/* ─────────────────────────────────────────
   PAGE HEADING (Maps, Projects)
───────────────────────────────────────── */
.page-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.page-heading h1 {
    font-size: 32px;
    font-weight: 400;
    margin: 0 0 14px;
}

.page-heading p { font-size: 15px; color: var(--text-mid); margin: 0 0 6px; }
.page-heading p.note { font-size: 13px; color: var(--text-light); }

/* ─────────────────────────────────────────
   PROJECTS GRID
───────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    background: rgba(255,255,255,0.4);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: box-shadow 0.2s, background 0.2s;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.65);
    text-decoration: none;
    color: var(--text);
}

.project-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-card);
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-card-img img { transform: scale(1.04); }

.project-card-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tag {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green);
    margin-bottom: 8px;
}

.project-card h2 {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 10px;
    line-height: 1.3;
}

.project-card p {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: var(--text-mid);
    margin: 0 0 16px;
    line-height: 1.6;
    flex: 1;
}

.project-card .read-more {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
}

.project-card:hover .read-more { color: var(--green-dk); }

/* Coming soon card */
.project-card.coming-soon {
    opacity: 0.6;
    pointer-events: none;
}

.project-card.coming-soon .project-tag { color: var(--text-light); }

/* ─────────────────────────────────────────
   PROJECT PAGE (individual)
───────────────────────────────────────── */
.project-header {
    margin-bottom: 48px;
}

.breadcrumb {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.breadcrumb a { color: var(--text-mid); }
.breadcrumb span { margin: 0 6px; }

.project-header h1 {
    font-size: 38px;
    font-weight: 400;
    margin: 0 0 16px;
}

.project-header .lead {
    font-size: 17px;
    color: var(--text-mid);
    max-width: 620px;
    margin: 0;
}

/* ─────────────────────────────────────────
   MAPS PAGE
───────────────────────────────────────── */
.map-label {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: var(--text-mid);
    text-align: center;
    margin-bottom: 10px;
}

.map-frame-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.map-frame-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ─────────────────────────────────────────
   BUTTERFLIES
───────────────────────────────────────── */
.butterfly-collages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 8px;
}

.collage-item .caption {
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: center;
    color: var(--text-mid);
    margin-top: 8px;
    line-height: 1.6;
}

.attribution {
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: center;
    color: var(--text-light);
    margin: 10px 0 48px;
}

.reads-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: start;
}

.reads-row h3 {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--green);
}

.reads-row ul {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.reads-row ul li { margin-bottom: 8px; }
.reads-row ul li a { font-family: Arial, sans-serif; font-size: 14px; }

.side-thumb { width: 110px; flex-shrink: 0; }

.species-block { margin-bottom: 20px; }

.species-block h3 {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
}

.species-block p {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: var(--text-mid);
    margin: 0;
}

/* ─────────────────────────────────────────
   EVENTS
───────────────────────────────────────── */
.event-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 52px;
    margin-bottom: 52px;
    border-bottom: 1px solid var(--border);
}

.event-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.event-poster {
    background: var(--bg-card);
    overflow: hidden;
    border: 1px solid var(--border);
}

.event-poster img { width: 100%; }

.event-details h2 {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 6px;
    line-height: 1.3;
}

.event-meta {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 16px;
    line-height: 1.6;
}

.event-desc {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: var(--text-mid);
    margin: 0 0 22px;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    background: var(--green);
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 24px;
    transition: background 0.2s;
    letter-spacing: 0.02em;
}

.btn:hover { background: var(--green-dk); color: white; text-decoration: none; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
}

.btn-outline:hover { background: var(--green); color: white; }

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-email {
    font-weight: 700;
    font-family: Arial, sans-serif;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
    background: #d4d1c9;
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-name {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.4;
}

.footer-links {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: var(--text-mid);
    text-align: right;
    line-height: 1.8;
}

.footer-links a { color: var(--green); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 860px) {
    .nav-inner { padding: 0 20px; }
    .nav-title span { display: none; }
    .nav-title img { height: 30px; }
    .nav-links > li > a { padding: 0 10px; font-size: 12px; }

    .hero h1 { font-size: 26px; }
    .hero p { font-size: 14px; }

    .container { padding: 0 20px; }

    .photo-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .nav-boxes { grid-template-columns: 1fr 1fr; gap: 16px; }
    .two-col { grid-template-columns: 1fr; gap: 36px; }
    .two-col h1 { font-size: 30px; }
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .butterfly-collages { grid-template-columns: 1fr; }
    .reads-row { grid-template-columns: 1fr; }
    .event-card { grid-template-columns: 1fr; gap: 24px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { text-align: center; }
}

@media (max-width: 560px) {
    .nav-links > li > a { padding: 0 7px; font-size: 11px; }
    .photo-grid { grid-template-columns: 1fr 1fr; }
    .nav-boxes { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    section { margin: 40px 0; }
}
