/* ============================================================
   Beach Haven Charter Fishing Association — bespoke theme
   v0.1 shell. Nautical: deep navy chrome, ocean blue, gold
   sponsor accents, sand/cream sections. Exact tokens refined
   in the Phase 6 pixel pass against the live Neve site.
   ============================================================ */

:root {
    --bh-navy:        #0b2a45;   /* header / footer chrome      */
    --bh-navy-2:      #103a5e;   /* gradient companion          */
    --bh-ocean:       #1d6fa5;   /* primary links / buttons     */
    --bh-ocean-dark:  #155a87;
    --bh-gold:        #c8a04e;   /* sponsor / accent            */
    --bh-gold-light:  #e4c87f;
    --bh-sand:        #f5efe2;   /* alt section background      */
    --bh-cream:       #fbf8f1;
    --bh-ink:         #16242f;   /* body text                   */
    --bh-muted:       #5a6b78;
    --bh-line:        #dfe5ea;
    --bh-white:       #ffffff;

    --bh-font-body:   "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --bh-font-head:   "Oswald", var(--bh-font-body);

    --bh-maxw:        1200px;
    --bh-radius:      8px;
    --bh-shadow:      0 6px 24px rgba(11, 42, 69, .12);
}

/* ---- Base ---- */
.bh-body {
    margin: 0;
    font-family: var(--bh-font-body);
    color: var(--bh-ink);
    background: var(--bh-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.bh-body * { box-sizing: border-box; }

/* Global heading type scale — REQUIRED. Tailwind preflight (app.css)
   resets h1..h6 to 1rem; without this every unsized heading collapses
   to body size. See memory: mmcms-rich-content-h3-unsized. */
.bh-body h1, .bh-body h2, .bh-body h3,
.bh-body h4, .bh-body h5, .bh-body h6 {
    font-family: var(--bh-font-head);
    font-weight: 600;
    line-height: 1.15;
    color: var(--bh-navy);
    margin: 0 0 .5em;
    text-transform: none;
}
.bh-body h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.bh-body h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.bh-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.bh-body h4 { font-size: 1.25rem; }
.bh-body h5 { font-size: 1.05rem; }
.bh-body h6 { font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--bh-muted); }

.bh-body p { margin: 0 0 1rem; }
.bh-body a { color: var(--bh-ocean); text-decoration: none; }
.bh-body a:hover { color: var(--bh-ocean-dark); text-decoration: underline; }
.bh-body img { max-width: 100%; height: auto; display: block; }

/* ---- Layout helpers ---- */
.bh-wrap { max-width: var(--bh-maxw); margin: 0 auto; padding: 0 20px; }
.bh-section { padding: 56px 0; }
.bh-section--sand { background: var(--bh-sand); }
.bh-section--navy { background: linear-gradient(135deg, var(--bh-navy), var(--bh-navy-2)); color: #dceaf3; }
.bh-section--navy h1, .bh-section--navy h2, .bh-section--navy h3 { color: #fff; }
.bh-section__head { text-align: center; max-width: 760px; margin: 0 auto 36px; }

/* ---- Buttons ---- */
.bh-btn {
    display: inline-block; font-family: var(--bh-font-head); font-weight: 600;
    padding: 12px 26px; border-radius: var(--bh-radius); border: 2px solid transparent;
    cursor: pointer; text-align: center; transition: .18s ease; letter-spacing: .02em;
}
.bh-btn:hover { text-decoration: none; transform: translateY(-1px); }
.bh-btn--primary { background: var(--bh-ocean); color: #fff; }
.bh-btn--primary:hover { background: var(--bh-ocean-dark); color: #fff; }
.bh-btn--gold { background: var(--bh-gold); color: var(--bh-navy); }
.bh-btn--gold:hover { background: var(--bh-gold-light); color: var(--bh-navy); }
.bh-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.bh-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- Skip link ---- */
.skip-to-content {
    position: absolute; left: -999px; top: 0; background: var(--bh-gold);
    color: var(--bh-navy); padding: 10px 16px; z-index: 1000; border-radius: 0 0 6px 0;
}
.skip-to-content:focus { left: 0; }

/* ============================================================
   Header
   ============================================================ */
.bh-topbar {
    background: var(--bh-navy); color: #cfe0ec; font-size: .85rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.bh-topbar .bh-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.bh-topbar a { color: #cfe0ec; }
.bh-topbar a:hover { color: #fff; }
.bh-topbar__social { display: flex; gap: 14px; align-items: center; }

.bh-header { background: var(--bh-white); border-bottom: 1px solid var(--bh-line); position: sticky; top: 0; z-index: 500; }
.bh-header .bh-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.bh-logo img { max-height: 64px; width: auto; }
.bh-logo--text { font-family: var(--bh-font-head); font-weight: 700; font-size: 1.3rem; color: var(--bh-navy); }

.bh-nav { display: flex; gap: 4px; align-items: center; }
.bh-nav > a, .bh-nav > .bh-nav__item > a {
    font-family: var(--bh-font-head); font-weight: 500; color: var(--bh-navy);
    padding: 10px 12px; border-radius: 6px; font-size: .98rem; white-space: nowrap;
}
.bh-nav a:hover { background: var(--bh-sand); color: var(--bh-ocean-dark); text-decoration: none; }
.bh-nav__item { position: relative; }
.bh-nav__item > .bh-submenu {
    position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
    border: 1px solid var(--bh-line); border-radius: 8px; box-shadow: var(--bh-shadow);
    padding: 6px; display: none; z-index: 600;
}
.bh-nav__item:hover > .bh-submenu { display: block; }
.bh-submenu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--bh-ink); }

.bh-burger { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--bh-navy); cursor: pointer; }

/* ============================================================
   Footer
   ============================================================ */
.bh-footer { background: var(--bh-navy); color: #b9cdda; padding: 48px 0 0; font-size: .95rem; }
.bh-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.bh-footer a { color: #b9cdda; }
.bh-footer a:hover { color: #fff; }
.bh-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.bh-footer__links { list-style: none; margin: 0; padding: 0; }
.bh-footer__links li { margin-bottom: 8px; }
.bh-footer__bar {
    margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0;
    display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: #8aa6b8;
}

/* ============================================================
   Mobile
   ============================================================ */
.bh-mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(11,42,69,.5); z-index: 700; }
.bh-mobile-menu {
    position: fixed; top: 0; right: -320px; width: 300px; max-width: 85vw; height: 100%;
    background: #fff; z-index: 800; transition: right .25s ease; padding: 20px; overflow-y: auto;
}
.bh-mobile-menu.is-open { right: 0; }
.bh-mobile-overlay.is-open { display: block; }
.bh-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.bh-mobile-menu a { display: block; padding: 12px 6px; color: var(--bh-navy); border-bottom: 1px solid var(--bh-line); font-family: var(--bh-font-head); }

/* ============================================================
   Sponsors — directory + placement strips
   ============================================================ */
.bh-tier-head { text-align: center; margin: 36px 0 6px; position: relative; }
.bh-tier-head::after { content: ""; display: block; width: 64px; height: 3px; margin: 10px auto 0; border-radius: 3px; background: var(--bh-gold); }
.bh-tier-head--platinum::after { background: #8a98a6; }
.bh-tier-head--gold::after     { background: var(--bh-gold); }
.bh-tier-head--silver::after   { background: #9aa3ab; }
.bh-tier-head--bronze::after   { background: #a9743b; }

.bh-sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin: 24px 0 36px; }
.bh-sponsor-card { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--bh-line); border-radius: 12px; padding: 22px 16px; text-decoration: none; color: var(--bh-ink); transition: .18s; }
.bh-sponsor-card:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); text-decoration: none; }
.bh-sponsor-card__logo { height: 80px; display: flex; align-items: center; justify-content: center; }
.bh-sponsor-card__logo img { max-height: 80px; max-width: 100%; object-fit: contain; }
.bh-sponsor-card__name { font-family: var(--bh-font-head); font-weight: 500; text-align: center; color: var(--bh-navy); }

.bh-tier-pill { display: inline-block; font-family: var(--bh-font-head); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; color: #fff; background: var(--bh-gold); }
.bh-tier-pill--platinum { background: #6b7886; }
.bh-tier-pill--gold     { background: var(--bh-gold); color: var(--bh-navy); }
.bh-tier-pill--silver   { background: #9aa3ab; }
.bh-tier-pill--bronze   { background: #a9743b; }

.bh-sponsor-strip { text-align: center; }
.bh-sponsor-strip__head { color: inherit; margin-bottom: 16px; }
.bh-sponsor-strip__logos { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; }
.bh-sponsor-strip__item { display: inline-flex; align-items: center; }
.bh-sponsor-strip__item img { max-height: 56px; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .18s; }
.bh-sponsor-strip__item:hover img { filter: none; opacity: 1; }
.bh-sponsor-strip__item--platinum img { max-height: 72px; max-width: 190px; }
.bh-sponsor-strip--footer .bh-sponsor-strip__item img { filter: brightness(0) invert(1); opacity: .75; }
.bh-sponsor-strip--footer .bh-sponsor-strip__item:hover img { filter: brightness(0) invert(1); opacity: 1; }

/* ============================================================
   Dashboard / front-end forms
   ============================================================ */
.bh-form { max-width: 760px; }
.bh-field { margin-bottom: 18px; }
.bh-field label { display: block; font-family: var(--bh-font-head); font-weight: 500; color: var(--bh-navy); margin-bottom: 6px; }
.bh-field input[type=text], .bh-field input[type=email], .bh-field input[type=url],
.bh-field input[type=tel], .bh-field input[type=file], .bh-field select, .bh-field textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--bh-line); border-radius: 8px;
    font: inherit; color: var(--bh-ink); background: #fff;
}
.bh-field textarea { min-height: 160px; resize: vertical; }
.bh-field small { color: var(--bh-muted); }
.bh-field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bh-errors { background: #fbe9e7; border: 1px solid #c62828; color: #c62828; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }
.bh-errors ul { margin: 0; padding-left: 18px; }
.bh-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.bh-thumbs img { width: 100%; height: 80px; object-fit: cover; border-radius: 6px; }

@media (max-width: 960px) {
    .bh-field--row { grid-template-columns: 1fr; }
    .bh-nav { display: none; }
    .bh-burger { display: block; }
    .bh-footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .bh-footer__bar { flex-direction: column; align-items: flex-start; }
}
