/*
 * The Wharf brand colours
 * Dark green: #1c3524
 * Gold: #d4a843
 * Light gold: #e8c96d
 * Dark bg: #162b1e
 * Off-white: #f5f2eb
 */

:root {
    --wharf-green: #1c3524;
    --wharf-green-dark: #162b1e;
    --wharf-gold: #d4a843;
    --wharf-gold-light: #e8c96d;
    --wharf-offwhite: #f5f2eb;
}

/* ===== Global ===== */
body {
    background-color: var(--wharf-offwhite);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('/wp-content/uploads/2025/03/cropped-450631664_10161149865163257_738163675246474817_n.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--wharf-green);
    font-family: 'Coustard', serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.page-title,
.entry-title,
.site-title,
.wharf-ontap-label,
.wharf-events-label,
.wharf-wc-hero-promo-title,
.wharf-wc-group-header,
.wharf-wc-bracket-round-title,
.main-navigation a,
.navbar a,
#site-navigation a {
    font-family: 'Coustard', serif;
    font-weight: 900;
    font-size: 1.6rem;
}

h1, .page-title {
    font-size: 2.4rem;
}

h2 {
    font-size: 1.9rem;
}

h3 {
    font-size: 1.6rem;
}

.main-navigation a,
.navbar a,
#site-navigation a {
    font-size: 0.9rem;
    font-weight: 400;
}

/* Semi-transparent overlay on content area so text stays readable */
.site-content,
.wrap,
#primary,
.entry-content,
article.type-beers,
article.post,
article.page {
    background: rgba(245, 242, 235, 0.85);
    border-radius: 8px;
    padding: 1.5rem;
}

/* Sticky footer — push footer to bottom on short-content pages */
#page.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content-contain {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.site-content-contain #content {
    flex: 1 0 auto;
}

.site-content-contain footer#colophon {
    flex-shrink: 0;
    margin-top: auto;
}

a {
    color: var(--wharf-gold);
}

a:hover {
    color: var(--wharf-gold-light);
}

/* ===== Header / Navigation ===== */
.site-header,
.main-navigation,
.navbar,
.site-navigation-fixed,
#masthead {
    background-color: var(--wharf-green) !important;
}

.main-navigation a,
.navbar a,
.site-header a,
#masthead a {
    color: var(--wharf-gold) !important;
}

.main-navigation a:hover,
.navbar a:hover,
.site-header a:hover,
#masthead a:hover {
    color: var(--wharf-gold-light) !important;
}

/* ===== Hero / Branding ===== */
.site-branding {
    background-color: transparent;
}

/* Desktop — spread all content wider */
@media (min-width: 1024px) {
    .site-branding .inner-wrap {
        max-width: 90vw !important;
        width: 90vw !important;
    }

    .wrap,
    #primary,
    .site-content .wrap,
    .site-content-contain {
        max-width: 90vw !important;
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .wharf-ontap-handpumps {
        max-width: 90%;
    }
}

/* On mobile, ensure casks lozenge clears the header */
@media (max-width: 768px) {
    .wharf-header-title {
        display: none !important;
    }

    .custom-header {
        display: block !important;
        height: auto !important;
    }

    .custom-header-media {
        display: block !important;
        height: auto !important;
    }

    .site-branding {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        padding-top: 100px !important;
        padding-bottom: 40px !important;
        opacity: 1 !important;
        width: 100% !important;
    }
}

.site-branding .site-title a,
.site-branding .site-description {
    color: var(--wharf-gold) !important;
}

/* Header logo — hard left */
.navbar .header-logo-wrapper {
    justify-content: flex-start !important;
    margin-right: auto !important;
}

.header-logo-wrapper img,
.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Site name in header — between hours and nav */
.wharf-header-title {
    font-family: 'Fredericka the Great', cursive;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--wharf-gold);
    white-space: nowrap;
    letter-spacing: 0.03em;
    padding: 0 1.5rem;
    margin-left: 1rem;
    display: inline-block;
    vertical-align: middle;
}

/* Today's hours in header */
.wharf-header-hours {
    display: inline-flex;
    flex-direction: column;
    margin-left: 16px;
    font-size: 0.8rem;
    line-height: 1.3;
    vertical-align: middle;
    color: var(--wharf-gold);
}

.wharf-header-day {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wharf-header-time {
    opacity: 0.85;
}

/* ===== Buttons ===== */
button,
input[type="submit"],
.button,
.btn,
.wp-block-button__link,
.header-button a {
    background-color: var(--wharf-gold) !important;
    color: var(--wharf-green) !important;
    border: none;
}

/* Header nav icons (search, menu toggle) — no gold background */
.site-header button,
#masthead button,
.navbar-toggle,
.search-toggle,
.menu-toggle {
    background-color: transparent !important;
    color: var(--wharf-gold) !important;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.btn:hover,
.wp-block-button__link:hover,
.header-button a:hover {
    background-color: var(--wharf-gold-light) !important;
    color: var(--wharf-green) !important;
}

/* ===== Footer ===== */
.site-footer,
#colophon,
footer {
    background-color: var(--wharf-green-dark) !important;
    color: var(--wharf-offwhite);
}

.site-footer a,
#colophon a,
footer a {
    color: var(--wharf-gold) !important;
}

.site-footer a:hover,
#colophon a:hover,
footer a:hover {
    color: var(--wharf-gold-light) !important;
}

/* ===== Headings ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--wharf-green);
}

/* ===== Cards / Posts ===== */
.entry-title a {
    color: var(--wharf-green);
}

.entry-title a:hover {
    color: var(--wharf-gold);
}

/* ===== Widgets / Sidebar ===== */
.widget-title {
    color: var(--wharf-green);
    border-bottom-color: var(--wharf-gold);
}

/* ===== Footer site-info ===== */
.wharf-site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.wharf-footer-links {
    display: flex;
    gap: 16px;
}

.wharf-footer-links a {
    color: var(--wharf-gold) !important;
    font-size: 0.9rem;
    text-decoration: none;
}

.wharf-footer-links a:hover {
    color: var(--wharf-gold-light) !important;
    text-decoration: underline;
}

/* ===== Scrollbar accent (modern browsers) ===== */
::-webkit-scrollbar-thumb {
    background-color: var(--wharf-gold);
}

/* ===== Selection highlight ===== */
::selection {
    background-color: var(--wharf-gold);
    color: var(--wharf-green);
}
