/* JOR Garden V7 | Mobile foundation + homepage editorial polish.
   Scope: <=1023 shared navigation/footer; <=767 homepage. Preserve desktop and WPConvert ids.
   Source: PHP nav hierarchy (header.php), original homepage editorial classes.
*/
/* The mobile submenu stays collapsed even when exported component styles use display:flex. */
.jg-v7-submenu[hidden] {display:none!important;}
.jg-v7-nav {display:none;}
@media (max-width:1023px) {
  :root { --jg-hdr-h:80px; --jg-hdr-hc:72px; }
  html body .jg-mobile-menu:not(.jg-menu-open) {display:none!important;visibility:hidden!important;pointer-events:none!important;}
  html body .jg-mobile-menu.jg-menu-open {display:flex!important;visibility:visible!important;pointer-events:auto!important;}
  .jg-hdr .jg-bar {padding-inline:clamp(18px,5.4vw,28px)!important;}
  .jg-hdr .jg-header-menu {min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;touch-action:manipulation;}
  .jg-hdr .jg-header-menu svg {width:28px!important;height:28px!important;}
  html body #jg-mobile-menu {
    box-sizing:border-box;top:var(--jg-hdr-h);bottom:0;height:auto;
    padding:0!important;overflow-y:auto!important;overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;background:var(--paper,#f3ede5)!important;
  }
  html body .jg-hdr.is-compact #jg-mobile-menu {top:var(--jg-hdr-hc);height:auto;}
  .jg-v7-nav {display:flex;box-sizing:border-box;flex-direction:column;gap:0;width:100%;max-width:640px;margin-inline:auto;padding:16px clamp(22px,6vw,42px) max(32px,env(safe-area-inset-bottom));}
  .jg-v7-menu-group {border-bottom:1px solid rgba(30,27,23,.15);}
  .jg-v7-group-toggle,.jg-v7-main-link {
    width:100%;min-height:64px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;
    padding:14px 0;margin:0;border:0;border-radius:0;border-bottom:1px solid rgba(30,27,23,.15);
    background:transparent;color:var(--ink,#211f1b)!important;text-align:left;
    font:500 clamp(20px,5.2vw,25px)/1.3 var(--font-display,Georgia,serif);text-decoration:none;cursor:pointer;
  }
  .jg-v7-group-toggle {border-bottom:0;}
  .jg-v7-chevron {width:10px;height:10px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .22s;flex-shrink:0;margin:0 4px 5px 12px;}
  .jg-v7-group-toggle[aria-expanded="true"] .jg-v7-chevron {transform:rotate(225deg);margin-top:8px;margin-bottom:0;}
  .jg-v7-submenu {padding:0 0 14px 16px;}
  .jg-v7-submenu a {display:flex;align-items:center;min-height:44px;box-sizing:border-box;padding:9px 8px;color:var(--ink,#211f1b)!important;text-decoration:none;font:400 clamp(16px,4vw,18px)/1.4 var(--font-sans,Arial,sans-serif);}
  .jg-v7-submenu a:first-child {font-weight:600;}
  .jg-v7-menu-cta {display:flex;align-items:center;justify-content:space-between;gap:12px;
    margin-top:28px;padding:18px 20px;min-height:56px;box-sizing:border-box;
    background:var(--clay,#b29479)!important;color:var(--paper,#fff)!important;
    text-decoration:none;font:600 16px/1.35 var(--font-sans,Arial,sans-serif);}
  .jg-v7-nav :is(a,button):focus-visible {outline:3px solid var(--clay,#b29479)!important;outline-offset:3px!important;}
  .jg-v7-menu-cta:focus-visible {outline-color:var(--ink,#211f1b)!important;}
  /* Fixed hero header: translucent on imagery until the visitor scrolls or opens the drawer. */
  body:has([data-jg-hero]) .jg-hdr:not(.jg-has-scrolled):not(.jg-menu-is-open)::after {opacity:0!important;}
  body:has([data-jg-hero]) .jg-hdr:not(.jg-has-scrolled):not(.jg-menu-is-open)::before {opacity:1!important;}
  .jg-hdr.jg-has-scrolled::after,.jg-hdr.jg-menu-is-open::after {opacity:1!important;background:var(--night,#171714)!important;}
  .jg-hdr.jg-has-scrolled::before,.jg-hdr.jg-menu-is-open::before {opacity:0!important;}
  /* Shared mobile footer spacing. Respect the existing four content groups. */
  .jg-ftr .jg-ftr-inner {padding:52px clamp(22px,6vw,32px) 24px!important;}
  .jg-ftr a {text-underline-offset:4px;}
}
@media(max-width:767px) {
  /* Homepage only: photo follows the story, never before it. */
  body[data-garden-page="/"] .jg-waarom {padding:52px 0 68px!important;}
  body[data-garden-page="/"] .jg-waarom-grid {display:flex!important;flex-direction:column!important;row-gap:34px!important;}
  body[data-garden-page="/"] .jg-waarom-tekst {order:1;grid-column:auto!important;min-width:0;width:100%;box-sizing:border-box;
    gap:24px!important;padding:0 clamp(22px,6vw,28px)!important;}
  body[data-garden-page="/"] .jg-waarom-img {order:2;grid-area:auto!important;grid-column:auto!important;width:100%;margin:0!important;}
  body[data-garden-page="/"] .jg-waarom-tekst h2 {
    font-size:clamp(31px,8.6vw,39px)!important;line-height:1.12!important;letter-spacing:-.025em!important;max-width:15ch!important;
    overflow-wrap:normal;hyphens:none;text-wrap:balance;
  }
  body[data-garden-page="/"] .jg-waarom-lead {font-size:clamp(16px,4.35vw,18px)!important;line-height:1.65!important;margin:20px 0 0!important;max-width:38ch!important;}
  body[data-garden-page="/"] .jg-waarom-tekst .jg-waarom-punten {margin:0!important;max-width:none!important;}
  body[data-garden-page="/"] .jg-waarom-tekst .jg-waarom-punten li {font-size:clamp(15px,4vw,17px)!important;line-height:1.4;min-height:48px;box-sizing:border-box;}
  body[data-garden-page="/"] .jg-waarom-frame {height:auto!important;aspect-ratio:5/4!important;}
  body[data-garden-page="/"] .jg-waarom-frame img {width:100%;height:100%;object-fit:cover;object-position:50% 43%;}
  body[data-garden-page="/"] .jg-waarom-img figcaption {padding:12px clamp(22px,6vw,28px) 0!important;}
  /* A consistent homepage mobile rhythm without changing interior pages. */
  body[data-garden-page="/"] .jg-st,
  body[data-garden-page="/"] .jg-studio {padding-block:64px!important;}
  body[data-garden-page="/"] .jg-studio-head h2 {font-size:clamp(31px,8vw,39px)!important;line-height:1.14!important;max-width:18ch!important;}
  body[data-garden-page="/"] .jg-st-head h2 {font-size:clamp(31px,8vw,39px)!important;line-height:1.14!important;}
  body[data-garden-page="/"] .jg-studio-lead {font-size:clamp(16px,4.1vw,18px)!important;line-height:1.6!important;}
  body[data-garden-page="/"] .jg-st .jg-podium-mobile {margin-top:28px!important;}
  body[data-garden-page="/"] .jg-hero section>div:last-child {padding-inline:clamp(22px,6vw,28px)!important;padding-bottom:clamp(48px,8svh,88px)!important;}
  body[data-garden-page="/"] .jg-hero h1 {font-size:clamp(40px,11vw,58px)!important;line-height:1.06!important;max-width:12ch!important;}
  body[data-garden-page="/"] .jg-hero p {font-size:clamp(17px,4.65vw,21px)!important;line-height:1.5!important;}
  body[data-garden-page="/"] .jg-contact-grid h2 {font-size:clamp(30px,8vw,40px)!important;line-height:1.14!important;}
}

/* Tablet shares the logical reading order but keeps more generous type and gutters. */
@media(min-width:768px) and (max-width:1023px) {
  body[data-garden-page="/"] .jg-waarom {padding:70px 0 80px!important;}
  body[data-garden-page="/"] .jg-waarom-grid {display:flex!important;flex-direction:column!important;gap:40px!important;}
  body[data-garden-page="/"] .jg-waarom-tekst {order:1;grid-column:auto!important;padding:0 40px!important;gap:24px!important;}
  body[data-garden-page="/"] .jg-waarom-img {order:2;grid-area:auto!important;grid-column:auto!important;width:100%;}
  body[data-garden-page="/"] .jg-waarom-tekst h2 {font-size:clamp(40px,5.3vw,52px)!important;line-height:1.12!important;max-width:17ch!important;}
  body[data-garden-page="/"] .jg-waarom-frame {height:auto!important;aspect-ratio:16/9!important;}
}
@media(max-width:359px) {
  .jg-v7-nav {padding-inline:18px;}
  body[data-garden-page="/"] .jg-waarom-tekst h2 {font-size:30px!important;}
}
@media(prefers-reduced-motion:reduce) { .jg-v7-chevron {transition:none!important;} }
