/*
 * GHAMC design system (owner-approved 24 Nov 2026), phase D1: header and footer.
 * Everything is scoped under .gh-header / .gh-footer / .gh-wa so the older page styles are not affected.
 */
:root {
    --gh-green-900: #123d28; --gh-green-700: #1e5b3a; --gh-green-600: #24704a; --gh-green-100: #e6f1ea;
    --gh-maroon-700: #8b1e2d; --gh-gold-500: #c89b3c; --gh-gold-100: #f8efd9;
    --gh-cream: #fbf7ee; --gh-ink: #1d2330; --gh-muted: #545e6b; --gh-line: #e3ddd0;
    --gh-font-body: 'Montserrat', system-ui, sans-serif; --gh-font-display: 'Cormorant Garamond', Georgia, serif;
    --gh-radius: 14px; --gh-radius-sm: 8px; --gh-shadow: 0 1px 2px rgba(18,61,40,.06), 0 8px 24px rgba(18,61,40,.08);
}

.gh-header, .gh-footer { font-family: var(--gh-font-body); }
.gh-header *:not(i), .gh-footer *:not(i) { font-family: var(--gh-font-body); box-sizing: border-box; }
.gh-header :focus-visible, .gh-footer :focus-visible, .gh-wa:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; border-radius: 4px; }
.gh-skip { position: absolute; left: -999px; top: 8px; z-index: 2000; background: #fff; color: var(--gh-green-900); padding: 8px 12px; border-radius: 6px; font-weight: 600; }
.gh-skip:focus { left: 8px; }

/* Header */
.gh-header { background: #fff; box-shadow: 0 1px 0 var(--gh-line), 0 6px 18px rgba(18,61,40,.06); }
.gh-topbar { background: var(--gh-green-900); color: #e9f2ec; font-size: .82rem; }
.gh-topbar .gh-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; flex-wrap: wrap; }
.gh-topbar a { color: #e9f2ec; text-decoration: none; }
.gh-topbar a:hover { color: #fff; text-decoration: underline; }
.gh-topbar .gh-contact, .gh-topbar .gh-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gh-social { display: flex; gap: 6px; align-items: center; }
.gh-social a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); font-size: .8rem; }
.gh-social a:hover { background: var(--gh-gold-500); color: #111; text-decoration: none; }
.gh-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.gh-header .navbar { padding: 0; }
.gh-header .gh-main { display: flex; align-items: center; gap: 12px; min-height: 72px; flex-wrap: wrap; }
/* Two rows on wide screens: brand and actions, then the full menu. */
.gh-header .navbar-collapse { flex-basis: 100%; order: 5; }
@media (min-width: 1200px) { .gh-header .navbar-collapse { border-top: 1px solid var(--gh-line); } .gh-header .navbar-nav { margin: 0 auto !important; padding: 4px 0; gap: 4px; } }
.gh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gh-green-900); margin-right: auto; flex-shrink: 0; }
.gh-brand img { width: 54px; height: auto; }
.gh-brand strong { font-family: var(--gh-font-display) !important; font-size: 1.25rem; line-height: 1.1; display: block; font-weight: 700; }
.gh-brand small { display: block; color: var(--gh-muted); font-size: .68rem; letter-spacing: .1em; }
.gh-header .navbar-nav .nav-link { font-size: .92rem !important; font-weight: 600; color: var(--gh-ink); padding: .55rem .45rem !important; border-radius: var(--gh-radius-sm); text-transform: capitalize; white-space: nowrap; cursor: pointer; }
.gh-header .navbar-nav .nav-link:hover, .gh-header .navbar-nav .nav-link.show { background: var(--gh-green-100); color: var(--gh-green-900); }
.gh-header .navbar-nav .nav-link i.fa-angle-down { font-size: .7rem; margin-left: .3rem !important; }
.gh-header .dropdown-menu { border: 1px solid var(--gh-line); border-radius: var(--gh-radius); box-shadow: var(--gh-shadow); padding: 8px; min-width: 250px; }
.gh-header .dropdown-item { border-radius: var(--gh-radius-sm); padding: .5rem .75rem; font-size: .9rem; text-transform: capitalize; white-space: normal; }
.gh-header .dropdown-item:hover, .gh-header .dropdown-item:focus { background: var(--gh-cream); color: var(--gh-green-900); }
.gh-actions { display: flex; align-items: center; gap: 6px; }
.gh-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .88rem; text-decoration: none; border: 2px solid transparent; white-space: nowrap; cursor: pointer; background: none; }
.gh-btn-primary { background: var(--gh-green-700); color: #fff; }
.gh-btn-primary:hover { background: var(--gh-green-900); color: #fff; }
.gh-btn-ghost { color: var(--gh-green-900); }
.gh-btn-ghost:hover { background: var(--gh-green-100); color: var(--gh-green-900); }
.gh-toggler { border: 2px solid var(--gh-green-700) !important; border-radius: 999px !important; width: 44px; height: 44px; color: var(--gh-green-700); display: none; align-items: center; justify-content: center; }

@media (max-width: 1199.98px) {
    .gh-toggler { display: inline-flex; }
    .gh-header .navbar-collapse.show, .gh-header .navbar-collapse.collapsing { max-height: calc(100vh - 120px); overflow-y: auto; padding-bottom: 12px; }
    .gh-header .navbar-nav { align-items: stretch !important; }
    .gh-header .dropdown-menu { box-shadow: none; border: 0; padding-left: 14px; }
    .gh-actions .gh-btn-ghost .gh-label { display: none; }
}
@media (max-width: 600px) {
    .gh-topbar .gh-email, .gh-topbar .gh-social { display: none; }
    .gh-brand strong { font-size: 1rem; width: 170px; }
    .gh-actions .gh-btn-primary, .gh-actions .gh-contact-btn { display: none; }
    .gh-header .gh-main { gap: 8px; }
    .gh-btn-ghost { padding: .55rem .7rem; }
}

/* Footer */
#footer.gh-footer { background: #0e2f1f !important; background-image: none !important; color: #cfe0d5; padding: 56px 0 24px; font-size: .93rem; margin: 0; }
.gh-footer .gh-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
#footer.gh-footer h2 { font-family: var(--gh-font-display) !important; color: #fff; font-size: 1.35rem !important; line-height: 1.2 !important; margin: 0 0 14px; font-weight: 700; }
.gh-footer ul { list-style: none; padding: 0; margin: 0; }
.gh-footer li { margin-bottom: 9px; }
.gh-footer a { color: #cfe0d5; text-decoration: none; }
.gh-footer a:hover { color: #fff; text-decoration: underline; }
.gh-footer .gh-contact-list i { color: var(--gh-gold-500); width: 20px; }
.gh-footer .gh-social { margin-top: 16px; }
.gh-footer .gh-social a { width: 34px; height: 34px; background: rgba(255,255,255,.08); color: #fff; font-size: .95rem; }
.gh-footer .gh-social a:hover { background: var(--gh-gold-500); color: #111; text-decoration: none; }
.gh-visits { display: flex; gap: 4px; margin-top: 8px; }
.gh-visits span { background: rgba(255,255,255,.08); color: #fff; border-radius: 6px; padding: 4px 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gh-map { width: 100%; height: 220px; border: 0; border-radius: var(--gh-radius); }
.gh-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.gh-wa { position: fixed; left: 16px; bottom: 16px; z-index: 1030; width: 56px; height: 56px; border-radius: 50%; box-shadow: var(--gh-shadow); display: block; }
.gh-wa img { width: 56px; height: 56px; border-radius: 50%; }
@media (max-width: 991px) { .gh-footer .gh-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gh-footer .gh-cols { grid-template-columns: 1fr; } #footer.gh-footer { padding: 40px 0 88px; } }
@media (prefers-reduced-motion: reduce) { .gh-header *, .gh-footer * { transition: none !important; } }
