/* ==========================================================================
   Nansemond Beekeepers — Brand Stylesheet
   One consolidated file (wtmg.info accumulated two overlapping/conflicting
   brand stylesheets over time — this avoids repeating that).
   ========================================================================== */

:root {
    --bee-gold:    #F0A500;  /* Primary — honey gold */
    --bee-gold-dk: #9A5C00;  /* Hover state for gold — darkened for WCAG AA contrast on light backgrounds */
    --bee-dark:    #3B2B18;  /* Header / footer background — hive brown */
    --bee-black:   #1D1607;  /* High-contrast text */
    --bee-cream:   #FFF8E7;  /* Light background */
    --bee-green:   #4C7A3D;  /* Accent — pollinator garden tie-in */
    --bee-light-grey: #f5f5f0;
}

* { box-sizing: border-box; }

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--bee-black);
    background-color: var(--bee-white, #fff);
    line-height: 1.6;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    margin-bottom: 1rem;
}

h2 { color: var(--bee-dark); }

a {
    color: var(--bee-green);
    font-weight: 700;
}

a:hover { color: var(--bee-gold-dk); }

/* Thick outline only for keyboard users — mouse hover shouldn't draw a box. */
a:focus-visible, button:focus-visible, summary:focus-visible {
    color: var(--bee-gold-dk);
    outline: 3px solid var(--bee-gold);
    outline-offset: 2px;
}

/* Form fields never push a page wider than the screen. */
input, select, textarea { max-width: 100%; min-width: 0; }

/* Text for screen readers only (e.g. "opens in a new tab"). */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--bee-dark);
    color: #ffffff !important;
    padding: 8px;
    z-index: 100;
    transition: top 0.2s;
    text-decoration: none;
    font-weight: bold;
}
.skip-link:focus { top: 0; }

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* Many pages set "padding: 40px 0" inline on the container, which zeroes the
   side gutters and pushes text against the screen edge on phones. Keep the
   gutters no matter what a page sets. */
.admin-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Header */
.site-header-bar {
    background: var(--bee-dark);
    padding: 30px 0;
    color: white;
}

.header-wordmark {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--bee-dark);
}

/* Nav */
.site-nav {
    background: var(--bee-light-grey);
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.nav-link, .nav-current {
    text-decoration: none;
    color: var(--bee-dark) !important;
    font-weight: 700;
}

.nav-current { color: var(--bee-gold-dk) !important; }

.site-tagline {
    flex: 1;
    min-width: 250px;
    text-align: right;
    font-size: 1.05rem;
    margin: 0;
    font-style: italic;
    color: #fff3d6;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    font: inherit;
    font-weight: 800;
    color: var(--bee-dark);
    background: #fff;
    border: 2px solid var(--bee-dark);
    border-radius: 4px;
    padding: 8px 16px;
    min-height: 44px;
    cursor: pointer;
}

nav a:focus-visible, nav button:focus-visible {
    outline: 3px solid var(--bee-green);
    outline-offset: 2px;
}

.nav-btn-login {
    text-decoration: none;
    color: var(--bee-gold-dk) !important;
    font-weight: 700;
    border: 2px solid var(--bee-gold-dk);
    padding: 5px 15px;
    border-radius: 4px;
}
.nav-btn-login:hover, .nav-btn-login:focus {
    background: var(--bee-gold-dk);
    color: white !important;
}

.nav-btn-dash {
    text-decoration: none;
    color: var(--bee-dark) !important;
    font-weight: 700;
    padding: 6px 14px;
    border: 3px solid var(--bee-gold);
    border-radius: 4px;
    display: inline-block;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}
.nav-btn-dash:hover, .nav-btn-dash:focus {
    background: var(--bee-gold);
    color: white !important;
    outline: none;
}

/* Footer */
footer[role="contentinfo"] {
    background: var(--bee-dark);
    color: #f0e6d2;
    padding: 50px 0;
    margin-top: 0;
}
.footer-heading-gold { color: var(--bee-gold); font-size: 1.25rem; margin-bottom: 15px; }
.footer-heading-cream { color: #fff3d6; font-size: 1.1rem; margin-bottom: 15px; }

/* Grid / tiles / buttons (shared component classes across pages) */
.vce-grid, .bee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.file-tile {
    background: #ffffff;
    border: 1px solid #ddd;
    border-left: 8px solid var(--bee-green);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.vce-button, .bee-button {
    background-color: var(--bee-gold) !important;
    color: var(--bee-black) !important;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}
.vce-button:hover, .vce-button:focus,
.bee-button:hover, .bee-button:focus {
    background-color: var(--bee-dark) !important;
    color: #ffffff !important;
}

/* Home page: hero + next-meeting card + photo preview
   ========================================================================== */
.home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.next-meeting {
    background: var(--bee-cream);
    border-left: 8px solid var(--bee-gold);
    border-radius: 4px;
    padding: 20px 24px;
    margin: 20px 0;
}
.next-meeting h2 { margin: 0 0 6px; font-size: 1.1rem; color: var(--bee-green); text-transform: uppercase; letter-spacing: 0.04em; }
.next-meeting .nm-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 6px; color: var(--bee-dark); }
.next-meeting .nm-when { font-weight: 700; margin: 0 0 4px; }
.next-meeting .nm-where { margin: 0 0 14px; font-size: 0.95rem; }
.next-meeting .nm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.next-meeting .bee-button { padding: 10px 18px; font-size: 0.95rem; }

.bee-button-green { background-color: var(--bee-green) !important; color: #fff !important; }

.photo-preview { position: relative; height: 300px; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); background: var(--bee-cream); }
.photo-preview a { display: block; height: 100%; text-decoration: none; }
.photo-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.8s ease-in-out; }
.photo-preview img.is-active { opacity: 1; }
.photo-preview .pp-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(59, 43, 24, 0.85); color: #fff; padding: 10px 15px; font-size: 0.95rem; font-weight: 700; }
.photo-preview .pp-pause {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    font: inherit; font-size: 0.85rem; font-weight: 800;
    background: rgba(255,255,255,0.95); color: var(--bee-dark);
    border: 2px solid var(--bee-dark); border-radius: 4px;
    padding: 6px 12px; min-height: 36px; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
    .photo-preview img { transition: none; }
}

.swarm-call {
    display: inline-block;
    background: var(--bee-dark);
    color: #fff !important;
    font-size: 1.15rem;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
}
.swarm-call:hover { background: var(--bee-green); }

/* Phones and small tablets
   ========================================================================== */
@media (max-width: 767px) {
    .site-header-bar { padding: 10px 0; }
    .site-header-bar .admin-container { padding: 10px 16px; }
    .site-tagline { display: none; }
    .admin-container { padding-left: 16px !important; padding-right: 16px !important; }

    .site-nav { padding: 8px 0; }
    .site-nav .admin-container { padding-top: 4px; padding-bottom: 4px; }
    .nav-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; }
    .nav-collapsible .nav-list { display: none; }
    .nav-collapsible.nav-open .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 10px;
    }
    .nav-collapsible.nav-open .nav-list li { border-top: 1px solid #ddd; }
    .nav-collapsible.nav-open .nav-list a,
    .nav-collapsible.nav-open .nav-list .nav-current { display: block; padding: 12px 4px; }
    .nav-collapsible.nav-open .nav-list li[style] { margin-left: 0 !important; }
    .nav-collapsible.nav-open .nav-btn-login,
    .nav-collapsible.nav-open .nav-btn-dash { text-align: center; margin: 8px 0; }

    .home-hero { grid-template-columns: 1fr; gap: 24px; }
    .home-hero h1 { font-size: 1.8rem; margin: 0 0 10px; }
    .photo-preview { height: 220px; }
    .swarm-call { display: block; text-align: center; }
}

/* Shared form + status pieces (used by Help Wanted and Membership Requests;
   new pages should use these instead of inline styles)
   ========================================================================== */
.page-title { color: var(--bee-dark); border-bottom: 4px solid var(--bee-gold); padding-bottom: 10px; margin-bottom: 20px; }
.lead { font-size: 1.05rem; max-width: 750px; }

.form-stack { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }
.field { display: flex; flex-direction: column; }
.field label, .field .label { font-weight: 700; margin-bottom: 5px; }
.field input, .field select, .field textarea {
    padding: 10px; border: 1px solid #8a8a8a; border-radius: 4px; font: inherit;
}
.field .hint { font-size: 0.875rem; color: #555; margin: 4px 0 0; }
fieldset.choice { border: 1px solid #ccc; border-radius: 4px; padding: 12px 16px; margin: 0; }
fieldset.choice legend { font-weight: 700; padding: 0 6px; }
fieldset.choice label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-weight: 400; cursor: pointer; }
fieldset.choice input { margin-top: 5px; flex: none; }

.msg { padding: 14px 16px; border-radius: 4px; margin-bottom: 20px; border: 1px solid; }
.msg-ok   { background: #eaf5e6; border-color: var(--bee-green); color: #1d4d16; }
.msg-err  { background: #fff5f5; border-color: #c0392b; color: #922; }
.msg-info { background: var(--bee-cream); border-color: var(--bee-gold); color: var(--bee-black); }

.pill { display: inline-block; font-size: 0.8rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--bee-light-grey); color: var(--bee-dark); border: 1px solid #ccc; }
.pill-green { background: #eaf5e6; border-color: var(--bee-green); color: #1d4d16; }
.pill-gold  { background: var(--bee-cream); border-color: var(--bee-gold-dk); color: #6b4000; }

.btn-small { padding: 8px 14px !important; font-size: 0.9rem; border: none; cursor: pointer; }
.btn-quiet {
    background: #fff; color: var(--bee-dark); border: 2px solid var(--bee-dark);
    border-radius: 4px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.btn-quiet:hover, .btn-quiet:focus-visible { background: var(--bee-dark); color: #fff; }

.need-card { margin-bottom: 20px; }
.need-card h2, .need-card h3 { margin: 6px 0; }
.need-meta { font-weight: 700; color: var(--bee-gold-dk); margin: 0 0 4px; }
.need-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; }
.need-actions form { margin: 0; }
.attn-tile { border-left-color: #c0392b !important; background: #fffaf3; }
.pill-red { background: #fff5f5; border-color: #c0392b; color: #922; }

/* Site Check: big, easy Works / Problem / Skip choices */
.qa-item { margin: 0; }
.qa-choices { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.qa-choices legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.qa-choices label {
    display: inline-flex; align-items: center; gap: 8px;
    border: 2px solid #8a8a8a; border-radius: 4px; padding: 8px 16px; min-height: 44px;
    cursor: pointer; font-weight: 700; background: #fff;
}
.qa-choices label:has(input:checked) { border-color: var(--bee-dark); background: var(--bee-cream); }
.qa-choices label:has(input[value="problem"]:checked) { border-color: #c0392b; background: #fff5f5; }
.qa-choices label:has(input:focus-visible) { outline: 3px solid var(--bee-gold); outline-offset: 2px; }
.qa-note { margin-top: 12px; }

.footer-report { color: #ffd873; font-weight: 700; }

/* Danger variant of .btn-quiet (step down, delete). Red on white, white on red when hovered. */
.btn-quiet.btn-danger { border-color: #922; color: #922; }
.btn-quiet.btn-danger:hover, .btn-quiet.btn-danger:focus-visible { background: #922; color: #fff; }
