/* Floating wooden buttons (WhatsApp right, accessibility left), the accessibility menu,
   the small "coming soon" window for phone/WhatsApp, and the visitor-chosen accessibility modes. */

/* one wood finish for every small square button (header phone, WhatsApp, accessibility) */
.wood-btn{position:relative;display:grid;place-items:center;padding:0;border:0;border-radius:15px;cursor:pointer;color:#3a1f08;text-decoration:none;
  background:url('assets/site/sign.webp') 50% 50%/330% 190% no-repeat,#a8743f;
  box-shadow:inset 0 1px 0 #ffe7b866,inset 0 -3px 0 #4a2a1066,inset 0 0 0 1px #5a33144d,0 6px 16px #1a0e0466;
  transition:translate .2s cubic-bezier(.22,1,.36,1),box-shadow .2s,scale .1s}
.wood-btn svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 0 #f6dcaa99)}
.wood-btn:hover{translate:0 -3px;box-shadow:inset 0 1px 0 #ffe7b866,inset 0 -3px 0 #4a2a1066,inset 0 0 0 1px #5a33144d,0 10px 22px #1a0e0473}
.wood-btn:active{scale:.93}
.wood-btn:focus-visible{outline:3px solid #ffcf4d;outline-offset:3px;box-shadow:0 0 0 7px #2c4410}

.fab{position:fixed;z-index:58;bottom:calc(18px + env(safe-area-inset-bottom,0px));width:58px;height:58px;animation:fab-in .7s .8s cubic-bezier(.34,1.4,.5,1) both}
.fab svg{width:30px;height:30px}
@keyframes fab-in{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
.fab-wa{right:calc(18px + env(safe-area-inset-right,0px))}
.fab-wa svg{stroke-width:2}
.fab-wa .wa-badge{position:absolute;top:-5px;left:-5px;width:20px;height:20px;border-radius:50%;background:#25d366;border:2px solid #fff6dc;box-shadow:0 2px 5px #0004}
.fab-wa .wa-badge::after{content:"";position:absolute;inset:4px;border-radius:50%;border:2px solid #fff}

.a11y{position:fixed;z-index:59;left:calc(18px + env(safe-area-inset-left,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px))}
.a11y .fab{position:relative;left:auto;bottom:auto}
.a11y-dot{position:absolute;top:-4px;right:-4px;width:14px;height:14px;border-radius:50%;background:#2f8f2f;border:2px solid #fff6dc;opacity:0;transition:opacity .2s}
.a11y.has-changes .a11y-dot{opacity:1}
/* the editor pencil moves up so it never sits on the accessibility button */
.ed-pencil{bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;left:calc(30px + env(safe-area-inset-left,0px))!important}

.a11y-panel{position:absolute;bottom:calc(100% + 12px);left:0;width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain;
  padding:16px;border-radius:22px;background:#fffaf0;color:#1f2a12;border:2px solid #2c4410;box-shadow:0 20px 44px #1a2a0659;direction:rtl;font-family:Heebo,system-ui,sans-serif;
  transform-origin:0 100%;animation:a11y-pop .3s cubic-bezier(.22,1,.36,1)}
.a11y-panel[hidden]{display:none}
@keyframes a11y-pop{from{opacity:0;scale:.9}to{opacity:1;scale:1}}
.a11y-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.a11y-title{margin:0;font-size:20px;font-weight:900;color:#2c4410}
.a11y-title:focus{outline:none}

.a11y-close{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:14px;background:#2c441014;color:#2c4410;font-size:26px;line-height:1;cursor:pointer}
.a11y-close:focus-visible,.a11y-panel button:focus-visible,.a11y-panel a:focus-visible{outline:3px solid #2c4410;outline-offset:2px}
.a11y-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.a11y-row,.a11y-opt{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;margin:0;padding:8px 12px;border:1px solid #2c441026;border-radius:15px;background:#fff;color:#1f2a12;
  font:600 16px Heebo,system-ui,sans-serif;text-align:start;cursor:pointer}
.a11y-row{cursor:default}
.a11y-opt:hover{background:#f3f7e6}
.a11y-ic{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:10px;background:#2c441012;color:#2c4410}
.a11y-ic svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.a11y-name{flex:1}
.a11y-switch{position:relative;flex:none;width:46px;height:27px;border-radius:20px;background:#7d8670;transition:background .2s}
.a11y-switch::after{content:"";position:absolute;top:3px;right:3px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:right .2s}
.a11y-opt[aria-pressed=true]{border-color:#2c4410;background:#eef5dc}
.a11y-opt[aria-pressed=true] .a11y-switch{background:#2c4410}
.a11y-opt[aria-pressed=true] .a11y-switch::after{right:22px}
.a11y-stepper{display:flex;align-items:center;gap:6px}
.a11y-stepper button{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#fff;border:1px solid #2c441040;font:800 20px Heebo,sans-serif;color:#2c4410;cursor:pointer}
.a11y-stepper button:disabled{opacity:.35;cursor:default}
.a11y-text-value{min-width:5em;text-align:center;font-size:14px}
.a11y-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}
.a11y-foot a,.a11y-foot button{min-height:44px;display:inline-flex;align-items:center;padding:0 6px;border:0;background:none;font:700 15px Heebo,sans-serif;color:#2c4410;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.a11y-hint{margin:8px 0 0;font-size:13px;line-height:1.5;color:#4a5434}

/* small "coming soon" window for phone / WhatsApp */
dialog.reach{width:min(340px,calc(100vw - 32px));margin:auto;padding:22px 20px 20px;border:2px solid #2c4410;border-radius:22px;background:#fffaf0;color:#1f2a12;text-align:center;
  box-shadow:0 24px 50px #1a2a0666;direction:rtl;font-family:Heebo,system-ui,sans-serif}
dialog.reach::backdrop{background:#1a2a0659;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
dialog.reach[open]{animation:reach-in .35s cubic-bezier(.22,1,.36,1)}
@keyframes reach-in{from{opacity:0;translate:0 18px;scale:.96}to{opacity:1;translate:0 0;scale:1}}
.reach .reach-ic{width:62px;height:62px;margin:0 auto 10px;border-radius:17px;cursor:default}
.reach .reach-ic svg{width:30px;height:30px}
.reach .reach-ic:hover{translate:none}
.reach h2{margin:0 0 6px;font-size:22px;font-weight:900;color:#2c4410}
.reach p{margin:0 0 16px;font-size:16px;line-height:1.55;color:#3d4630}
.reach-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.reach-actions button{min-height:46px;padding:0 18px;border-radius:14px;font:800 15px Heebo,sans-serif;cursor:pointer}
.reach-form{border:0;background:#2c4410;color:#fff6dc}
.reach-ok{border:1px solid #2c441040;background:#fff;color:#2c4410}
.reach-actions button:focus-visible{outline:3px solid #ffcf4d;outline-offset:2px}

@media(max-width:600px){
  .fab{width:52px;height:52px;bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  .fab svg{width:27px;height:27px}
  .fab-wa{right:calc(14px + env(safe-area-inset-right,0px))}
  .a11y{left:calc(14px + env(safe-area-inset-left,0px));bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  .a11y-panel{position:fixed;left:12px;right:12px;bottom:calc(78px + env(safe-area-inset-bottom,0px));width:auto}
  .ed-pencil{bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;left:calc(24px + env(safe-area-inset-left,0px))!important}
}
@media(prefers-reduced-motion:reduce){.fab,.a11y-panel,dialog.reach[open]{animation:none}}

/* ---------- visitor-chosen modes ---------- */
/* larger text: the content sections scale as a whole so each layout keeps its proportions (the hero scene keeps its size) */
html.a11y-text-1 main>section:not(.hero),html.a11y-text-1 .ground-seam,html.a11y-text-1 .gfoot,html.a11y-text-1 dialog,html.a11y-text-1 .hd-nav{zoom:1.15}
html.a11y-text-2 main>section:not(.hero),html.a11y-text-2 .ground-seam,html.a11y-text-2 .gfoot,html.a11y-text-2 dialog,html.a11y-text-2 .hd-nav{zoom:1.3}
html.a11y-text-1 .hero-copy p{font-size:115%}
html.a11y-text-2 .hero-copy p{font-size:130%}

/* high contrast: body text near-black on its cream background, no soft shadows on text, solid field borders, a strong focus ring */
html.a11y-contrast :is(main,dialog) :is(p,li,small,label,span,figcaption,output):not(.hd *):not(.a11y *){color:#111!important;text-shadow:none!important}
html.a11y-contrast .gfoot :is(a,small,p,strong,span,h2,li,button){color:#fff!important;text-shadow:none!important}
html.a11y-contrast :is(h1,h2,h3){text-shadow:none!important}
html.a11y-contrast :is(input,select,textarea){border:2px solid #1f2a12!important;background:#fff!important;color:#111!important}
html.a11y-contrast ::placeholder{color:#3a3a3a!important;opacity:1}
html.a11y-contrast .copy-wash{opacity:1!important}
html.a11y-contrast :focus-visible{outline:3px solid #111!important;outline-offset:3px!important;box-shadow:0 0 0 7px #ffd400!important}

/* stop animations (scripts also read "reduce" through the boot script) */
html.a11y-motion *,html.a11y-motion *::before,html.a11y-motion *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;animation-delay:0s!important;transition-duration:.001ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
html.a11y-motion .wind,html.a11y-motion .leaf{display:none!important}

/* highlight links and buttons */
html.a11y-links :is(main,footer,.hd-nav) a{text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:4px!important}
html.a11y-links :is(main,footer) :is(button,a):not(.ba-range){outline:2px dashed currentColor;outline-offset:3px}

/* readable font: a plain sans with more spacing (decorative lettering images are unaffected) */
html.a11y-font body :is(p,li,span,a,strong,small,label,button,h1,h2,h3,h4,input,select,textarea,output){font-family:Arial,"Helvetica Neue",Helvetica,sans-serif!important;letter-spacing:normal!important}
html.a11y-font body :is(p,li){line-height:1.75!important;word-spacing:.08em}

/* skip link: fully out of sight until it gets keyboard focus, then a clear green pill at the top */
.skip{top:-200px!important;right:12px;left:auto;z-index:300;padding:12px 20px;border-radius:14px;background:#2c4410;color:#fff6dc;font:800 16px Heebo,sans-serif;text-decoration:none;box-shadow:0 10px 24px #1a2a0659}
.skip:focus,.skip:focus-visible{top:12px!important;outline:3px solid #ffcf4d;outline-offset:3px}
