/* Shared site header + footer (partials/header.html, partials/footer.html).
   Everything is scoped under .jg with jg- class names so the Shopify theme CSS
   on the content pages can't change it, and it can't change them.
   Desktop header from 1100px up; below that a phone header with a hamburger. */

@font-face { font-family: 'JG Brandon'; src: url(../assets/fonts/Brandon-Text-Regular.otf) format('opentype'); font-weight: 300 400; font-display: swap; }
@font-face { font-family: 'JG Brandon'; src: url(../assets/fonts/Brandon-Text-Medium.otf) format('opentype'); font-weight: 500 600; font-display: swap; }

/* ---------- reset inside the header/footer ---------- */
.jg {
  --jg-b20: #333; --jg-b40: #666; --jg-gray: #d9d9d9; --jg-divider: #f5f5f5; --jg-link: #3a52c0;
  --jg-gutter: clamp(16px, 5.5vw, 80px);
  font-family: 'JG Brandon', 'Brandon-Regular', system-ui, sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: 0;
  color: #000; text-align: left; -webkit-font-smoothing: antialiased;
}
.jg, .jg *, .jg *::before, .jg *::after { box-sizing: border-box; }
/* the theme forces font-family/weight with !important on links and buttons,
   and a fixed size on every span and li */
.jg a, .jg button, .jg small { font-family: inherit !important; font-weight: inherit !important; }
.jg a { color: inherit; text-decoration: none; }
.jg button { font-size: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; box-shadow: none; border-radius: 0; min-width: 0; min-height: 0; text-transform: inherit; }
.jg span, .jg li { font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; }
.jg ul { list-style: none; margin: 0; padding: 0; }
.jg p, .jg h2 { margin: 0; }
.jg h2, .jg h2 button { font-family: inherit !important; }
.jg img { display: block; max-width: 100%; height: auto; }
.jg :focus-visible { outline: 2px solid var(--jg-link); outline-offset: 2px; }
.jg .jg-ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; flex: none; display: block; }
body.jg-locked { overflow: hidden; }

.jg .jg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500 !important; font-size: 14.4px; line-height: 1.2;
  padding: 11px 19px; border-radius: 999px; border: 1px solid currentColor;
  white-space: nowrap; transition: background-color .15s;
}
.jg .jg-btn:hover { background: var(--jg-divider); }
.jg .jg-btn--solid { background: #000; color: #fff; border-color: #000; }
.jg .jg-btn--solid:hover { background: #222; }
.jg .jg-eyebrow { font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--jg-b40); }
.jg .jg-wm { display: inline-flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.jg .jg-wm img { width: 200px; }
.jg .jg-wm small { font-size: 9px; font-weight: 500 !important; line-height: 1; color: var(--jg-b40); }

/* ---------- header ---------- */
.jg.jg-head { position: sticky; top: 0; z-index: 900; background: #fff; }

.jg .jg-util {
  display: flex; justify-content: flex-end; align-items: center; gap: 26px;
  height: 38px; padding: 0 var(--jg-gutter);
  font-size: 13px; color: var(--jg-b40); border-bottom: 1px solid var(--jg-divider);
}
.jg .jg-util a { display: inline-flex; align-items: center; gap: 5px; }
.jg .jg-util a:hover { color: #000; }
.jg .jg-util .jg-ico { width: 14px; height: 14px; }
.jg .jg-sep { width: 1px; height: 14px; background: var(--jg-gray); }

.jg .jg-main {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  height: 83px; padding: 0 var(--jg-gutter); border-bottom: 1px solid var(--jg-divider);
}
.jg .jg-nav { display: flex; gap: clamp(24px, 2.6vw, 38px); align-self: stretch; font-size: 16px; }
.jg .jg-nav a { display: flex; align-items: center; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.jg .jg-nav a:hover, .jg .jg-nav a[aria-current="page"] { border-bottom-color: #000; }
.jg .jg-actions { display: flex; align-items: center; gap: 26px; }
.jg .jg-menu-btn { display: none; }

/* phone menu: full-screen sheet */
.jg.jg-sheet {
  position: fixed; inset: 0; z-index: 1000;
  background: #fff; display: flex; flex-direction: column;
  animation: jg-sheet-in .22s ease-out;
}
.jg.jg-sheet[hidden] { display: none; }
@keyframes jg-sheet-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.jg .jg-sheet-top { display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 16px; border-bottom: 1px solid var(--jg-divider); flex: none; }
.jg .jg-sheet-top .jg-wm img { width: 150px; }
.jg .jg-sheet-top .jg-ico { width: 26px; height: 26px; }
.jg .jg-mlist { flex: 1; overflow-y: auto; padding: 0 16px; }
.jg .jg-mrow { display: block; padding: 18px 0; border-bottom: 1px solid var(--jg-divider); font-size: 20px; }
.jg .jg-mrow[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.jg .jg-msec { padding: 20px 0; font-size: 15px; color: var(--jg-b40); display: flex; gap: 14px; }
.jg .jg-mbottom { padding: 16px 16px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--jg-divider); flex: none; }
.jg .jg-mbottom .jg-btn { width: 100%; padding: 15px; font-size: 15px; }

/* ---------- footer ---------- */
.jg.jg-foot { background: var(--jg-divider); padding: 72px var(--jg-gutter) 32px; }
.jg .jg-ftop { display: grid; grid-template-columns: 232px repeat(3, 176px) 1fr; gap: 29px; align-items: start; }
.jg .jg-fbrand { display: flex; flex-direction: column; gap: 26px; }
.jg .jg-fbrand .jg-wm img { width: 184px; }
.jg .jg-fdesc { font-size: 16px; line-height: 25px; color: var(--jg-b20); }
.jg .jg-fcols { display: contents; }
.jg .jg-fhead { margin: 0 0 18px; font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: #000; }
.jg .jg-fhead button { cursor: default; display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; }
.jg .jg-fhead .jg-ico { display: none; }
.jg .jg-fcol ul { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.5; }
.jg .jg-fcol a:hover { text-decoration: underline; text-underline-offset: 3px; }
.jg .jg-social { display: flex; gap: 11px; }
.jg .jg-social a { width: 35px; height: 35px; border-radius: 50%; background: #000; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500 !important; line-height: 1; }
.jg .jg-social a:hover { background: #333; }
.jg .jg-shopcard { background: #fff; display: grid; grid-template-columns: 146px 1fr; min-height: 202px; border-radius: 8px; overflow: hidden; }
.jg .jg-shopcard > img { width: 100%; height: 100%; object-fit: cover; }
.jg .jg-shoptext { padding: 22px; display: flex; flex-direction: column; gap: 11px; }
.jg .jg-shoptitle { font-weight: 500; font-size: 17.6px; }
.jg .jg-shoptext p:not(.jg-shoptitle) { font-size: 14.4px; line-height: 1.5; color: var(--jg-b20); }
.jg .jg-shoptext .jg-btn { margin-top: auto; align-self: flex-start; padding: 11px 18px; }
.jg .jg-legal {
  display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  font-size: 13.6px; line-height: 1.5; border-top: 1px solid var(--jg-gray); margin-top: 48px; padding-top: 24px;
}
.jg .jg-legal nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.jg .jg-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* language switcher (footer) */
.jg .jg-lang { display: flex; align-items: center; align-self: flex-start; gap: 0; border: 1px solid var(--jg-gray); border-radius: 999px; padding: 3px; flex-wrap: nowrap; }
.jg .jg-lang a { padding: 4px 14px; border-radius: 999px; line-height: 1.4; color: var(--jg-b40); }
.jg .jg-lang a:hover { color: #000; text-decoration: none; }
.jg .jg-lang a[aria-current] { background: #000; color: #fff; }
.jg .jg-lang a[lang="ar"] { font-family: 'GE_SS_Medium', 'JG Brandon', system-ui, sans-serif !important; }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  .jg .jg-ftop { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .jg .jg-fbrand { grid-column: 1 / -1; display: grid; grid-template-columns: 232px 1fr; gap: 16px 40px; align-items: start; }
  .jg .jg-fbrand .jg-wm { grid-row: span 2; }
  .jg .jg-shopcard { grid-column: 1 / -1; max-width: 560px; }
}

@media (max-width: 1099px) {
  .jg .jg-util { justify-content: flex-start; height: 36px; padding: 0 16px; gap: 18px; background: var(--jg-divider); border: 0; }
  .jg .jg-sep, .jg .jg-util .jg-util-media { display: none; }
  .jg .jg-main { height: 64px; padding: 0 16px; }
  .jg .jg-main .jg-wm img { width: 150px; }
  .jg .jg-nav, .jg .jg-actions .jg-btn { display: none !important; }
  .jg .jg-actions { gap: 16px; }
  .jg .jg-menu-btn .jg-ico { width: 26px; height: 26px; }
  .jg .jg-menu-btn { display: inline-flex; }
}

@media (max-width: 749px) {
  .jg.jg-foot { padding: 36px 16px 32px; }
  .jg .jg-ftop { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .jg .jg-fbrand { display: contents; }
  .jg .jg-fbrand .jg-wm { order: 1; align-self: flex-start; }
  .jg .jg-fbrand .jg-wm img { width: 150px; }
  .jg .jg-fdesc { order: 2; font-size: 15px; line-height: 23px; }
  .jg .jg-shopcard { order: 3; grid-template-columns: 130px 1fr; min-height: 150px; border-radius: 10px; max-width: none; }
  .jg .jg-shoptext { padding: 16px; gap: 7px; }
  .jg .jg-shoptitle { font-size: 16px; }
  .jg .jg-shoptext p:not(.jg-shoptitle) { font-size: 14px; line-height: 21px; }
  .jg .jg-shoptext .jg-btn { font-size: 14px; padding: 10px 16px; }
  .jg .jg-fcols { display: block; order: 4; }
  .jg .jg-social { order: 5; align-self: flex-start; gap: 16px; }
  .jg .jg-social a { width: 38px; height: 38px; }
  .jg .jg-fhead { margin: 0; font-size: 13px; letter-spacing: .14em; }
  .jg .jg-fhead button { cursor: pointer; padding: 18px 0; border-bottom: 1px solid var(--jg-gray); }
  .jg .jg-fhead .jg-ico { display: block; }
  .jg .jg-fhead [aria-expanded="true"] .jg-i-plus, .jg .jg-fhead [aria-expanded="false"] .jg-i-minus { display: none; }
  .jg .jg-fcol ul { gap: 14px; padding: 6px 0 18px; border-bottom: 1px solid var(--jg-gray); }
  .jg .jg-fcol:not(.is-open) ul { display: none; }
  .jg .jg-legal { flex-direction: column-reverse; margin-top: 24px; font-size: 13px; color: var(--jg-b20); }
  .jg .jg-legal nav { gap: 6px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .jg.jg-sheet { animation: none; }
  .jg .jg-btn { transition: none; }
}

/* ---------- Arabic (pages in ar/ have <html lang="ar">) ---------- */
@font-face { font-family: 'GE_SS_Light'; src: url(../assets/fonts/GE_SS_Two_Light.otf) format('opentype'); font-display: swap; }
@font-face { font-family: 'GE_SS_Medium'; src: url(../assets/fonts/GE_SS_Two_Medium.otf) format('opentype'); font-display: swap; }
html[lang="ar"] .jg { direction: rtl; text-align: right; font-family: 'GE_SS_Light', 'JG Brandon', system-ui, sans-serif; }
html[lang="ar"] .jg .jg-btn, html[lang="ar"] .jg .jg-shoptitle, html[lang="ar"] .jg .jg-fhead,
html[lang="ar"] .jg .jg-nav, html[lang="ar"] .jg .jg-mrow { font-family: 'GE_SS_Medium', 'JG Brandon', system-ui, sans-serif; }
/* letter-spacing and capitals are for Latin labels only */
html[lang="ar"] .jg .jg-fhead, html[lang="ar"] .jg .jg-eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
html[lang="ar"] .jg .jg-fhead button { text-align: right; }
/* arrows point the other way */
html[lang="ar"] .jg .jg-ico:has(use[href="#jg-i-ext"]), html[lang="ar"] .jg .jg-ico:has(use[href="#jg-i-arr"]) { transform: scaleX(-1); }

/* The theme's custom.css has its own Arabic rules for p/span/li (font-family without a Latin
   fallback, and per-page sizes such as ".about-us p { font-size: 23px }"). The ids below
   outrank them so the header and footer look the same on every Arabic page. */
html[lang="ar"] :is(#jg-head, #jg-foot, #jg-menu), html[lang="ar"] :is(#jg-head, #jg-foot, #jg-menu) * { font-family: 'GE_SS_Light', 'JG Brandon', system-ui, sans-serif !important; }
html[lang="ar"] :is(#jg-head, #jg-foot, #jg-menu) :is(.jg-btn, .jg-shoptitle, .jg-fhead, .jg-fhead button, .jg-nav a, .jg-mrow, .jg-lang a[lang="ar"]) { font-family: 'GE_SS_Medium', 'JG Brandon', system-ui, sans-serif !important; }
html[lang="ar"] :is(#jg-head, #jg-foot, #jg-menu) :is(span, li) { font-size: inherit; line-height: inherit; letter-spacing: inherit; }
/* footer paragraphs: same size on every page, whatever the theme sets for p on that page */
#jg-foot .jg-fdesc { font-size: 16px; line-height: 25px; }
#jg-foot .jg-shoptitle { font-size: 17.6px; line-height: 1.5; }
#jg-foot .jg-shoptext p:not(.jg-shoptitle) { font-size: 14.4px; line-height: 1.5; }
@media (max-width: 749px) {
  #jg-foot .jg-fdesc { font-size: 15px; line-height: 23px; }
  #jg-foot .jg-shoptitle { font-size: 16px; }
  #jg-foot .jg-shoptext p:not(.jg-shoptitle) { font-size: 14px; line-height: 21px; }
}
