/* =====================================================================
   GIWU shared layout: one font, one header, one footer on every page.
   Added to every page by scripts/apply-layout.mjs during the build and
   loaded last, so it sits on top of the older page stylesheets.
   Every class here starts with gx- so nothing clashes with older CSS.
   ===================================================================== */

@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/mulish-latin-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/mulish-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/mulish-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/mulish-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mulish";
  font-style: italic;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/mulish-latin-wght-italic.woff2") format("woff2-variations"),
       url("/fonts/mulish-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gx-green: #2e7b11;
  --gx-green-dark: #1d3a10;
  --gx-deep: #102417;
  --gx-gold: #c8a864;
  --gx-gold-dark: #a8873f;
  --gx-gold-light: #ecd292;
  --gx-ink: #14181f;
  --gx-grey: #5f6b72;
  --gx-line: #e2e5df;
  --gx-soft: #f4f5f1;
  --gx-font: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gx-max: 1240px;
  --gx-radius: 14px;
  --gx-ease: cubic-bezier(.2, .7, .2, 1);
  --gx-header-h: 76px;
}

/* ---------- one typeface across the whole site ---------- */
body.gx-layout { font-family: var(--gx-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.gx-layout :where(h1, h2, h3, h4, h5, h6, p, a, li, span, strong, em, small, button, input, select, textarea, label, td, th, dt, dd, blockquote, figcaption, summary, div, section, article, aside, header, footer, nav, main) {
  font-family: var(--gx-font);
}
body.gx-layout :where(code, pre, kbd, samp) { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
body.gx-layout :where(h1, h2, h3) { letter-spacing: -.01em; }
html:has(body.gx-layout) { scroll-padding-top: calc(var(--gx-header-h) + 12px); }

/* The older interior pages were built for a fixed, see-through navigation bar
   and pushed their first section down to clear it. The shared header is part
   of the page flow, so those offsets are no longer needed. */
html:has(body.gx-layout) { padding-top: 0 !important; }
body.gx-layout.has-fixed-nav { padding-top: 0 !important; }
body.gx-layout .page-hero { padding-top: 72px !important; }
body.gx-layout .hero-section { padding-top: 80px !important; }
body.gx-layout .article-hero { padding-top: 80px !important; }
body.gx-layout.dark-hero .page-hero.prefab-hero { padding-top: 72px !important; }
@media (max-width: 760px) {
  body.gx-layout .page-hero { padding-top: 44px !important; }
  body.gx-layout .hero-section,
  body.gx-layout .article-hero { padding-top: 48px !important; }
  body.gx-layout.dark-hero .page-hero.prefab-hero { padding-top: 44px !important; }
}

.gx-wrap { width: 100%; max-width: var(--gx-max); margin: 0 auto; padding: 0 24px; }
.gx-skip { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--gx-ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700; text-decoration: none; }
.gx-skip:focus { left: 0; }

/* ---------- top contact bar ---------- */
.gx-topbar { background: var(--gx-green-dark); color: #dfe6d9; font-size: 13px; line-height: 1.4; }
.gx-topbar .gx-wrap { display: flex; justify-content: flex-end; align-items: center; gap: 22px; min-height: 34px; flex-wrap: wrap; }
.gx-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.gx-topbar a:hover { color: var(--gx-gold-light); }
.gx-topbar .gx-topbar-place { margin-right: auto; opacity: .85; }

/* ---------- header ---------- */
.gx-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--gx-line); transition: box-shadow .25s var(--gx-ease); }
.gx-header.gx-scrolled { box-shadow: 0 8px 28px rgba(20, 24, 31, .08); }
.gx-header .gx-wrap { display: flex; align-items: center; gap: 22px; min-height: var(--gx-header-h); }
.gx-brand { display: inline-flex; flex: 0 0 auto; }
.gx-brand img { width: 150px; height: auto; display: block; }

.gx-nav { margin-left: auto; }
.gx-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gx-menu > li { position: relative; }
.gx-menu a, .gx-menu .gx-sub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 700; color: var(--gx-ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; line-height: 1.2;
  transition: background .2s var(--gx-ease), color .2s var(--gx-ease);
}
.gx-menu a:hover, .gx-menu .gx-sub-toggle:hover { background: var(--gx-soft); color: var(--gx-green); }
.gx-menu a[aria-current="page"] { color: var(--gx-green); box-shadow: inset 0 -2px 0 var(--gx-green); border-radius: 0; }
.gx-sub-toggle svg { width: 12px; height: 12px; transition: transform .2s var(--gx-ease); }
.gx-has-sub[data-open] .gx-sub-toggle svg { transform: rotate(180deg); }
.gx-sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--gx-line); border-radius: var(--gx-radius); box-shadow: 0 18px 40px rgba(20,24,31,.12); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s var(--gx-ease), transform .18s var(--gx-ease), visibility .18s; }
.gx-has-sub:hover .gx-sub, .gx-has-sub:focus-within .gx-sub, .gx-has-sub[data-open] .gx-sub { opacity: 1; visibility: visible; transform: none; }
.gx-sub a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; }
.gx-sub a small { font-size: 12.5px; font-weight: 500; color: var(--gx-grey); }

.gx-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.gx-basket { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--gx-ink); text-decoration: none; transition: background .2s var(--gx-ease); }
.gx-basket:hover { background: var(--gx-soft); color: var(--gx-green); }
.gx-basket svg { width: 23px; height: 23px; }
.gx-basket-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--gx-green); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
.gx-basket-count[hidden] { display: none; }
.gx-cta { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 10px; background: var(--gx-gold); color: var(--gx-ink); font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .2s var(--gx-ease), transform .2s var(--gx-ease), color .2s; }
.gx-cta:hover { background: var(--gx-gold-dark); color: #fff; transform: translateY(-1px); }
.gx-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; cursor: pointer; padding: 11px; }
.gx-toggle span { display: block; height: 2px; background: var(--gx-ink); border-radius: 2px; margin: 5px 0; transition: transform .25s var(--gx-ease), opacity .2s; }
.gx-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gx-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gx-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.gx-mobile-extra { display: none; }

@media (max-width: 1120px) {
  .gx-menu a, .gx-menu .gx-sub-toggle { padding: 10px 9px; font-size: 14.5px; }
  .gx-brand img { width: 132px; }
}

@media (max-width: 1000px) {
  :root { --gx-header-h: 66px; }
  .gx-topbar .gx-topbar-place, .gx-topbar .gx-hide-sm { display: none; }
  .gx-topbar .gx-wrap { justify-content: center; gap: 18px; }
  .gx-brand img { width: 124px; }
  /* a backdrop filter would trap the fixed menu panel inside the header, so the bar is plain white here */
  .gx-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .gx-toggle { display: inline-block; }
  .gx-actions { margin-left: auto; }
  .gx-actions .gx-cta { display: none; }
  .gx-nav { position: fixed; left: 0; right: 0; top: var(--gx-nav-top, var(--gx-header-h)); bottom: 0; margin: 0; background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 10px 20px 28px; border-top: 1px solid var(--gx-line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s var(--gx-ease), transform .2s var(--gx-ease), visibility .2s; }
  .gx-nav.gx-open { opacity: 1; visibility: visible; transform: none; }
  .gx-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .gx-menu > li { border-bottom: 1px solid var(--gx-line); }
  .gx-menu a, .gx-menu .gx-sub-toggle { width: 100%; justify-content: space-between; padding: 15px 4px; font-size: 17px; border-radius: 0; }
  .gx-menu a[aria-current="page"] { box-shadow: none; }
  .gx-sub { position: static; min-width: 0; padding: 0 0 10px 10px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .gx-has-sub[data-open] .gx-sub { display: block; }
  .gx-has-sub:hover .gx-sub { display: none; }
  .gx-has-sub[data-open]:hover .gx-sub { display: block; }
  .gx-sub a { padding: 10px 4px; font-size: 16px; }
  .gx-mobile-extra { display: grid; gap: 10px; margin-top: 20px; }
  .gx-mobile-extra .gx-cta { width: 100%; padding: 15px; font-size: 14px; }
  .gx-mobile-extra .gx-call { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border: 1.5px solid var(--gx-line); border-radius: 10px; color: var(--gx-ink); font-weight: 800; text-decoration: none; }
  body.gx-menu-open { overflow: hidden; }
}

/* ---------- footer ---------- */
.gx-footer { background: var(--gx-green-dark); color: #d6decf; font-size: 15px; line-height: 1.6; padding: 64px 0 0; margin-top: 0; }
.gx-footer a { color: #fff; text-decoration: none; }
.gx-footer a:hover { color: var(--gx-gold-light); }
.gx-foot-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.gx-foot-logo { width: 168px; height: auto; margin-bottom: 18px; }
.gx-footer p { margin: 0 0 18px; color: #d6decf; }
.gx-footer h2 { margin: 0 0 16px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gx-footer ul { list-style: none; margin: 0; padding: 0; }
.gx-footer li { margin: 0 0 9px; color: #d6decf; }
.gx-socials { display: flex; gap: 10px; }
.gx-socials a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .2s; }
.gx-socials a:hover { background: var(--gx-gold); color: var(--gx-ink); }
.gx-socials svg { width: 18px; height: 18px; }
.gx-foot-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0; font-size: 13px; }
.gx-foot-bottom .gx-wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 1000px) { .gx-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .gx-footer { padding-top: 48px; }
  .gx-foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .gx-foot-bottom .gx-wrap { flex-direction: column; }
}

/* ---------- small shared touches ---------- */
body.gx-layout ::selection { background: var(--gx-gold-light); color: var(--gx-ink); }
body.gx-layout :focus-visible { outline: 3px solid var(--gx-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .gx-header, .gx-nav, .gx-sub, .gx-cta, .gx-toggle span { transition: none !important; }
}
@media print {
  .gx-topbar, .gx-header, .gx-footer, .giwu-chat-root, .giwu-chat-launcher { display: none !important; }
}

/* reading-progress line on interior pages stays above the sticky header */
body.gx-layout .topline { z-index: 1100; }

/* headings never split words with a hyphen */
body.gx-layout :where(h1, h2, h3, h4) { -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; }

/* cookie notice: a compact card instead of a full-width band */
body.gx-layout #cookie-consent-banner {
  left: 20px; right: auto; bottom: 20px; max-width: 440px; padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--gx-gold); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
body.gx-layout #cookie-consent-banner .cookie-consent-content { flex-direction: column; align-items: stretch; gap: 12px; }
body.gx-layout #cookie-consent-banner h3, body.gx-layout #cookie-consent-banner h4 { font-size: 15px; margin: 0 0 4px; }
body.gx-layout #cookie-consent-banner p { font-size: 13px; line-height: 1.5; margin: 0; }
body.gx-layout #cookie-consent-banner .cookie-consent-buttons { display: flex; gap: 8px; justify-content: stretch; }
body.gx-layout #cookie-consent-banner .cookie-btn { flex: 1; padding: 10px 8px; font-size: 13px; border-radius: 10px; }
@media (max-width: 600px) {
  body.gx-layout #cookie-consent-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 14px 16px; }
}
