/* Royal Citrus Growers — mobile-first navigation and layout corrections */
.mobile-nav-head{display:none}
@media(max-width:900px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{min-width:320px}
  .site-header{z-index:1202!important;isolation:isolate}
  /* Avoid backdrop-filter creating a fixed-position containing block for the drawer. */
  .site-header.solid{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .site-header .wrap{width:calc(100% - 30px)!important;min-width:0;gap:9px!important}
  .site-header .brand{min-width:0;max-width:calc(100% - 60px);font-size:clamp(.88rem,3.7vw,1.05rem)!important;gap:8px!important;white-space:nowrap;flex:0 1 auto}
  .site-header .brand-mark{width:42px!important;height:42px!important;flex:0 0 42px!important;object-fit:contain!important}
  .nav-toggle{display:flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;margin-left:auto!important;padding:8px!important;position:relative;z-index:1205!important;touch-action:manipulation;color:#fff!important;background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:11px!important}
  .nav-toggle svg{width:25px;height:25px}
  .main-nav,header .main-nav{
    position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;
    width:min(310px,84vw)!important;max-width:310px!important;height:100vh!important;height:100dvh!important;min-height:100vh!important;
    margin:0!important;padding:calc(env(safe-area-inset-top) + 12px) 17px calc(env(safe-area-inset-bottom) + 22px)!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:5px!important;
    background:#10271d!important;box-shadow:-18px 0 42px rgba(0,0,0,.32)!important;overflow-x:hidden!important;overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;overscroll-behavior:contain;z-index:1204!important;
    transform:translate3d(105%,0,0)!important;visibility:hidden!important;pointer-events:none!important;
    transition:transform .25s ease,visibility .25s ease!important
  }
  .main-nav.open,header .main-nav.open{transform:translate3d(0,0,0)!important;visibility:visible!important;pointer-events:auto!important}
  .mobile-nav-head{display:flex!important;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:5px 0 15px;margin:0 0 10px;border-bottom:1px solid rgba(250,246,238,.17)}
  .mobile-nav-brand{display:flex;align-items:center;gap:9px;min-width:0;color:#fffaf0;font-family:var(--fd,Georgia,serif);font-size:clamp(.9rem,3.6vw,1.05rem);font-weight:700;line-height:1.15}
  .mobile-nav-brand img{width:42px;height:42px;flex:0 0 42px;object-fit:contain;background:#fff;border-radius:9px;padding:3px}
  .nav-close{display:flex!important;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border:1px solid rgba(255,255,255,.25)!important;border-radius:10px!important;color:#fffaf0!important;background:rgba(255,255,255,.09)!important;touch-action:manipulation;z-index:2}
  .nav-close svg{width:23px;height:23px}
  .main-nav>a,header .main-nav>a{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-height:48px!important;flex:0 0 auto!important;margin:0!important;padding:12px 14px!important;border-radius:10px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.35;font-size:clamp(16px,4.2vw,18px)!important;font-weight:750!important;color:#fffaf0!important;text-align:left!important;touch-action:manipulation;position:relative;z-index:1}
  .main-nav>a:hover,.main-nav>a:focus-visible{background:rgba(255,255,255,.10)!important;color:#fff!important}
  .main-nav>a.active,.main-nav>a[aria-current=page]{color:#ffd17f!important;background:rgba(233,161,59,.20)!important}
  .nav-scrim{display:block!important;position:fixed!important;inset:0!important;z-index:1201!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;background:rgba(3,12,8,.62)!important;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}
  .nav-scrim.open{opacity:1;visibility:visible;pointer-events:auto}
  .header-wa{display:none!important}
  body.nav-is-open{overflow:hidden!important;touch-action:none}
  .section,section,main,.wrap{min-width:0}
  .wrap{width:min(100% - 32px,1180px)}
  .section{padding-top:clamp(48px,9vw,72px);padding-bottom:clamp(48px,9vw,72px)}
  .section-heading,.lead,p,li{overflow-wrap:anywhere}
  .f-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important}
  .f-grid>*,.f-brand,.f-bottom>*{min-width:0}
  .f-bottom{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:flex-start}
  .gallery,.gallery-expanded,.catalog-grid,.p-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .gallery-carousel{grid-auto-columns:minmax(0,86%)!important}
  .p-card,.cat-card,.gallery-item,.info-card,.product-card{min-width:0}
  .btn,.actions .btn{max-width:100%;white-space:normal;justify-content:center}
  input,select,textarea{max-width:100%;min-width:0}
}
@media(max-width:560px){
  .site-header .brand{font-size:clamp(.84rem,3.6vw,.98rem)!important}
  .site-header .brand-mark{width:39px!important;height:39px!important;flex-basis:39px!important}
  .wrap{width:calc(100% - 30px)!important}
  .f-grid,.gallery,.gallery-expanded,.catalog-grid,.p-grid,.stats,.why-grid,.sol-grid,.contact-sidebar{grid-template-columns:minmax(0,1fr)!important}
  .f-bottom{flex-direction:column}
  .hero,.page-hero{min-height:0}
  .page-hero{padding-top:128px!important;padding-bottom:52px!important}
  .hero h1,.page-hero h1{font-size:clamp(2rem,9vw,3rem);overflow-wrap:anywhere}
  .hero p,.page-hero p{max-width:100%}
  .actions,.btn-row,.p-actions{display:flex;flex-wrap:wrap;gap:10px}
  .actions .btn,.btn-row .btn{width:100%}
  .section-heading{margin-bottom:24px}
  .wa-float{width:43px!important;height:43px!important;right:13px!important;bottom:13px!important}
  .wa-float svg{width:22px!important;height:22px!important}
}
@media(prefers-reduced-motion:reduce){.main-nav,.nav-scrim{transition:none!important}}
