/* Fine Rugs Creation — fixed master shell
   This is the sole positional authority for the global header. */

:root{
  --frc-fixed-header-h:68px;
}

html{
  scroll-padding-top:calc(var(--frc-fixed-header-h) + 12px)!important;
}

body{
  padding-top:var(--frc-fixed-header-h)!important;
}

/* Header is physically fixed to the viewport on every normal page. */
header.frc-site-header{
  position:fixed!important;
  top:0!important;
  right:0!important;
  left:0!important;
  width:100%!important;
  min-height:var(--frc-fixed-header-h)!important;
  margin:0!important;
  z-index:2147483600!important;
  overflow:visible!important;
  isolation:isolate!important;
  transform:none!important;
}

/* The approved floating WhatsApp master remains fixed to the viewport. */
a.frc-wa{
  position:fixed!important;
  right:max(14px,env(safe-area-inset-right))!important;
  bottom:max(14px,env(safe-area-inset-bottom))!important;
  z-index:2147483500!important;
  transform:none!important;
}

/* Design & Craftsmanship section navigation sits directly below fixed header. */
.quick-nav{
  top:var(--frc-fixed-header-h)!important;
}

/* Keep known anchored sections clear of the fixed header. */
[id]{
  scroll-margin-top:calc(var(--frc-fixed-header-h) + 12px);
}

#construction,
#materials,
#styles,
#shapes,
#edges,
#services,
#quality{
  scroll-margin-top:calc(var(--frc-fixed-header-h) + 64px)!important;
}

@media(max-width:959px){
  :root{
    --frc-fixed-header-h:68px;
    --frc-site-header-h:68px!important;
  }

  header.frc-site-header{
    position:fixed!important;
    top:0!important;
    right:0!important;
    left:0!important;
  }

  /* Native mobile dropdown remains anchored to the fixed header. */
  .frc-native-mobile-menu{
    max-height:calc(100dvh - var(--frc-fixed-header-h))!important;
  }
}

@media(max-width:599px){
  a.frc-wa{
    right:max(14px,env(safe-area-inset-right))!important;
    bottom:max(14px,env(safe-area-inset-bottom))!important;
  }
}
