/* Haulin Bass Guide — main stylesheet. Mobile-first. Values in :root are
   placeholders, replaced in Task 23 with exact extracted values. */

:root {
    /* Colors — extracted from Headway cache CSS (Task 23). Refined per-block in
       the side-by-side fidelity pass (Task 34). */
    --hb-page-frame:    #160d32;   /* dark fallback behind the lake bg image */
    --hb-bg:            #ffffff;   /* site content column background (verify in fidelity pass) */
    --hb-text:          #262222;   /* dominant body text */
    --hb-link:          #5cb811;   /* tentative — green accent; verify */
    --hb-link-hover:    #842828;
    --hb-accent:        #842828;   /* maroon — block borders + headings */
    --hb-block-bg:      #ebd8c7;   /* tan/cream content blocks */
    --hb-sidebar-bg:    #ebd8c7;
    --hb-border:        #842828;
    --hb-wrapper-bg:    #1c1c3b;   /* dark-blue home content wrapper (Headway #wrapper-2) */
    --hb-post-bg:       #fef5e2;   /* cream post-block bg in the home feed */
    --hb-on-dark:       #faf8f8;   /* light text over the dark-blue wrapper */

    /* Typography — extracted. Oswald (one widget title, #block-55) intentionally
       NOT loaded (Brian's call); that title uses the Trebuchet stack. */
    --hb-font-body:     "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    --hb-font-heading:  "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    --hb-font-size:     14px;

    /* Layout — original content frame is #wrapper-2 width:979px. */
    --hb-site-max:      979px;
    --hb-content-max:   979px;
    --hb-sidebar-w:     220px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--hb-text);
    background-color: var(--hb-page-frame);
    background-image: url("../img/biglake-right1.jpg");
    background-position: left bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    font: var(--hb-font-size)/1.5 var(--hb-font-body);
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-family: var(--hb-font-heading); }
a { color: var(--hb-link); }
a:hover, a:focus { color: var(--hb-link-hover); }
.hb-skiplink { position: absolute; left: -9999px; }
.hb-skiplink:focus { left: 0; top: 0; background: var(--hb-accent); color: #fff; padding: 0.5rem 1rem; z-index: 1000; }

/* --- Site frame (centered column over page-frame background) ---
   Original Headway #wrapper-2 had a 5px solid #842828 border on all sides with
   a 30px gap below; reproduced here so the maroon frame shows around the whole
   site (header + both columns + footer). */
.hb-site { max-width: var(--hb-site-max); margin: 0 auto 30px; background: var(--hb-wrapper-bg); border: 5px solid var(--hb-accent); box-shadow: 1px 1px 8px #c7c7c7; }

/* --- Header --- */
.hb-site-header { text-align: center; padding: 0; background: var(--hb-bg); margin-bottom: 15px; }
.hb-logo { display: block; }
.hb-logo img { margin: 0 auto; max-width: 100%; height: auto; display: block; }

/* --- Nav (reproduces the original Headway nav: red bar, uppercase Trebuchet
   bold mint links; bright-red text / dark-maroon bg on hover; near-black text /
   bright-red bg on the current page). --- */
.hb-nav { background: #9b3434; padding: 0; }
.hb-nav__list { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 0; justify-content: center; }
.hb-nav__list li { position: relative; }
.hb-nav__list a {
    display: block;
    height: 30px;
    line-height: 30px;
    padding: 0 15px;
    background: #9b3434;
    color: #e5f8ee;
    font-family: var(--hb-font-body);
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.hb-nav__list a:hover, .hb-nav__list a:focus { color: #f82121; background: #401515; }
/* Current page wins over hover (original keeps it bright red on hover too). */
.hb-nav__list .current-menu-item > a,
.hb-nav__list .current_page_item > a,
.hb-nav__list .current-menu-ancestor > a,
.hb-nav__list .current-menu-parent > a { color: #0f0303; background: #d72b2b; }
/* Submenu */
.hb-nav__list .sub-menu { display: none; position: absolute; background: #9b3434; list-style: none; padding: 0; margin: 0; min-width: 180px; z-index: 50; }
.hb-nav__list li:hover > .sub-menu, .hb-nav__list li:focus-within > .sub-menu { display: block; }

/* --- Layout ---
   The dark-blue wrapper + cream content + light promo sidebar treatment is
   site-wide (Brian 2026-06-01): the home scheme copied to every page. Home keeps
   a couple of bespoke overrides below (.home .hb-layout); everything else gets
   the cream main column here. */
.hb-layout { max-width: var(--hb-content-max); margin: 1rem auto; padding: 0 1rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.hb-main { min-width: 0; }
/* Cream content block on every page except the home feed (where each .hb-report
   is its own cream block on the blue wrapper). */
body:not(.home) .hb-main { background: var(--hb-post-bg); padding: 15px; }
/* Calendar = full-width, no sidebar, cream behind the embed (Brian 2026-06-01). */
.hb-main--full { max-width: var(--hb-content-max); margin: 1rem; padding: 15px; background: var(--hb-post-bg); }
.hb-article__title { color: var(--hb-accent); }
/* Promo sidebar — light text, centered items — on every page (was .home only). */
.hb-sidebar { color: var(--hb-on-dark); text-align: center; }
.hb-sidebar a { color: var(--hb-on-dark); }

/* --- Sidebar widgets --- */
.hb-widget { background: var(--hb-sidebar-bg); padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--hb-border); }
.hb-widget__title { margin-top: 0; color: var(--hb-accent); }
.hb-widget--facebook { background: none; border: 0; padding: 0; }
.hb-fb-banner img { display: block; width: 100%; height: auto; }
.hb-widget--contact .hb-widget__captain { font-weight: bold; margin: 0.25rem 0; }
.hb-widget--contact .hb-widget__phone { font-size: 1.3rem; font-weight: bold; margin: 0.15rem 0; }
.hb-widget--contact .hb-widget__phone a { color: var(--hb-accent); text-decoration: none; }

/* --- Home left-column promo stack --- */
.hb-swidget { margin-bottom: 1.5rem; }
.hb-swidget:last-child { margin-bottom: 0; }
.hb-swidget img { max-width: 100%; height: auto; display: block; margin-left: auto; margin-right: auto; }
.hb-swidget--review a, .hb-swidget--rates a { display: block; }
.hb-swidget--weather .aw-widget-legal { display: block; font-size: 0.75rem; margin-top: 0.25rem; color: #777; text-decoration: none; }
/* MailChimp signup — self-contained light box matching the original: light-gray
   surround (blends with the header image's baked-in gray), white form, dark
   (#3F3F3F) text, light-gray Subscribe button. */
.hb-swidget--mailchimp { background: #ededed; padding: 10px; }
.hb-swidget--mailchimp .mc_header_img { text-align: center; margin-bottom: 10px; }
.hb-swidget--mailchimp .mc_header_img img { margin: 0 auto; }
.hb-swidget--mailchimp #mc_signup_form { background: #fff; border: 1px solid #e0e0e0; color: #3f3f3f; padding: 8px; }
.hb-swidget--mailchimp .mc_merge_var { margin-bottom: 0.85em; }
.hb-swidget--mailchimp .mc_var_label { display: block; margin-bottom: 0.4em; font-weight: bold; color: #3f3f3f; }
.hb-swidget--mailchimp .mc_required { color: var(--hb-accent); }
.hb-swidget--mailchimp .mc_input { box-sizing: border-box; width: 100%; padding: 0.4em; background: #fff; border: 1px solid #ccc; color: #3f3f3f; }
.hb-swidget--mailchimp .mc_list { list-style: none; padding: 0; margin: 0.25em 0; }
.hb-swidget--mailchimp .mc_email_format { display: block; font-weight: bold; margin: 0.75em 0 0.4em; color: #3f3f3f; }
.hb-swidget--mailchimp .mc_email_type { color: #3f3f3f; }
.hb-swidget--mailchimp #mc-indicates-required { font-size: 0.8em; color: #777; margin-bottom: 0.5em; }
.hb-swidget--mailchimp #mc_signup_submit { margin-top: 1em; width: 80%; cursor: pointer; background: #e0e0e0; border: 1px solid #b5b5b5; color: #333; padding: 0.45em; border-radius: 3px; }
.hb-swidget--mailchimp #mc_signup_submit:hover { background: #d5d5d5; }
.hb-swidget--rates .hb-rates-note { margin-top: 0.75rem; font-size: 0.93rem; line-height: 1.45; text-align: left; }
.hb-swidget--rates .hb-rates-note p { margin: 0 0 0.6em; }
/* Portrait YouTube embeds + photos in the editable video block */
.hb-swidget--videos .hb-yt { width: 100%; height: auto; aspect-ratio: 9 / 16; display: block; margin: 0 0 1rem; }
.hb-swidget--videos img { margin: 0 auto 1rem; }
.hb-swidget--videos p { margin: 0; }

/* --- Carousel --- */
.hb-carousel-wrap { margin: 0 0 15px; }
.hb-carousel__img { width: 100%; height: auto; display: block; }

/* --- Dark-blue content wrapper (Headway #wrapper-2 = #1C1C3B) is now applied
   site-wide via .hb-site (see above). The home page keeps a bespoke layout inset
   (logo flush to the top/left/right red border, little blue on the left, flush
   right) that differs from the symmetric inset inner pages get. --- */
.home .hb-layout { max-width: none; margin: 0; padding: 0 0 0 5px; }
/* Rates widget = light-teal box with black text (original #block-16). */
.hb-swidget--rates { background: #e0f9f2; color: #080000; padding: 10px; }

/* --- Galleries inside a normal page body (e.g. the Airboat page) — 2 across,
   larger images. The theme uses HTML5 galleries, so WP emits no default float
   style and these would otherwise stack one-per-row. The dedicated Photo & Video
   page (.hb-gallery-page) overrides this just below with its own auto-fill grid,
   so it is unaffected. --- */
.hb-article__body .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1rem 0; }
.hb-article__body .gallery .gallery-item { width: auto; margin: 0; padding: 0; }
.hb-article__body .gallery .gallery-icon { margin: 0; }
/* Uniform square thumbnails — medium (600px) source cropped to a square centered
   on the middle of each photo, so portrait + landscape images all match in size. */
.hb-article__body .gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; display: block; }
.hb-article__body .gallery br { display: none; }

/* --- Photo & Video gallery --- */
.hb-gallery-page .wp-block-gallery,
.hb-gallery-page .blocks-gallery-grid,
.hb-gallery-page .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; list-style: none; padding: 0; }
.hb-gallery-page .gallery br { display: none; }
.hb-gallery-page .gallery .gallery-item { margin: 0; padding: 0; }
.hb-gallery-page .wp-block-gallery img,
.hb-gallery-page .blocks-gallery-grid img,
.hb-gallery-page .gallery img { width: 100%; height: auto; cursor: zoom-in; }
/* Video thumbnails on the Photo & Video page */
.hb-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; list-style: none; padding: 0; }
.hb-video-link { position: relative; display: block; }
.hb-video-link img { width: 100%; height: auto; display: block; }
.hb-video-link::after { content: "\25B6"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff; text-shadow: 0 0 8px rgba(0,0,0,0.7); }

/* --- Blog --- */
.hb-post-summary { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--hb-border); }
.hb-post-summary__title { margin: 0 0 0.25rem; }
.hb-post-summary__title a { text-decoration: none; }
.hb-post-summary__meta, .hb-single__meta { color: #777; font-size: 0.9rem; margin: 0 0 0.5rem; }
.hb-readmore { font-weight: bold; text-decoration: none; }
.hb-pagination { margin-top: 1rem; }

/* --- Home front-page report feed (category "1 - Show On Front Page") --- */
.hb-home-intro { margin-bottom: 1.5rem; }
.hb-report { background: var(--hb-post-bg); padding: 15px; margin-bottom: 15px; }
.hb-report:last-child { margin-bottom: 0; }
.hb-report__title { margin: 0 0 0.25rem; color: var(--hb-accent); }
.hb-report__title a { color: inherit; text-decoration: none; }
.hb-report__title a:hover { text-decoration: underline; }
.hb-report__meta { color: #777; font-size: 0.9rem; margin: 0 0 0.5rem; }
.hb-report__body { line-height: 1.8; }   /* original entry-content line-height: 180% */
.hb-report__body img { max-width: 100%; height: auto; }
/* WordPress image alignment inside content bodies (e.g. the About photo floats left) */
.hb-report__body .alignleft, .hb-article__body .alignleft { float: left; margin: 0 1rem 0.5rem 0; }
.hb-report__body .alignright, .hb-article__body .alignright { float: right; margin: 0 0 0.5rem 1rem; }
.hb-report__body .aligncenter, .hb-article__body .aligncenter { display: block; margin: 0.5rem auto; }
.hb-report__body::after, .hb-article__body::after { content: ""; display: block; clear: both; }

/* --- Page-specific tweaks --- */
/* Contact (page 10): larger right-column text per Brian (base 14px → 18px, ~+4pt). */
.page-id-10 .hb-article__body { font-size: 18px; }
/* Destinations (page 118): images span the full width of the main column (the
   imported markup hard-codes width="300"; CSS overrides the presentational attr). */
.page-id-118 .hb-article__body img { width: 100%; height: auto; display: block; }

/* --- Footer (black band, white text, flush to the maroon frame) — site-wide. --- */
.hb-site-footer { text-align: center; padding: 1.25rem 1rem; background: #000000; border-top: 0; margin-top: 15px; color: #ffffff; font-size: 0.9rem; }
.hb-site-footer a, .hb-site-footer__contact a { color: #ffffff; }

/* --- Desktop (>= 768px) --- */
@media (min-width: 768px) {
    .hb-layout { grid-template-columns: 7fr 17fr; gap: 5px; }
}

/* --- Print --- */
@media print {
    .hb-nav, .hb-carousel-wrap, .hb-sidebar { display: none; }
}
